Author Topic: [XP] Drago Save Layout  (Read 1982 times)

Offline LiTTleDRAgo

  • Astral Trancist
  • *****
  • Posts: 851
  • LV: 517
  • Gender: Male
    • View Profile
    • ~
[XP] Drago Save Layout
« on: March 14, 2017, 10:32:52 PM »
Drago Save Layout
Authors: LiTTleDRAgo
Version: 1.05
Type: Custom Save System
Key Term: Title / Save / Load / GameOver Add-on

Introduction

Custom Save Layout with unlimited saves and file management

Features

  • Unlimited saves.
  • File deletion.
  • Animated.

Screenshots

(click to show/hide)

Script

Here


Compatibility

Require Drago - Core Engine v1.55

Credits and Thanks

  • LiTTleDRAgo

Author's Notes

~
« Last Edit: October 09, 2017, 01:24:54 AM by LiTTleDRAgo »

Offline LiTTleDRAgo

  • Astral Trancist
  • *****
  • Posts: 851
  • LV: 517
  • Gender: Male
    • View Profile
    • ~
Re: [XP] Drago Save Layout
« Reply #1 on: October 09, 2017, 01:27:03 AM »
Update to v1.05

* Fixed screenshot bug in XPA.
* Add save note

(click to show/hide)

Offline Kise

  • Awakened Visionist
  • **
  • Posts: 61
  • LV: 1
  • Gender: Male
    • View Profile
Re: [XP] Drago Save Layout
« Reply #2 on: October 09, 2017, 12:30:54 PM »
That was fast! well done. :) It seems like 'go back buttons' still are not working in choice windows. Do you plan on adding that mechanic?

Btw. do you think, that method of getting user input would be more responsive if done like here? - http://forum.chaos-project.com/index.php?topic=6731.0
« Last Edit: October 09, 2017, 04:03:28 PM by Kise »

Offline LiTTleDRAgo

  • Astral Trancist
  • *****
  • Posts: 851
  • LV: 517
  • Gender: Male
    • View Profile
    • ~
Re: [XP] Drago Save Layout
« Reply #3 on: October 09, 2017, 04:27:46 PM »
That was fast! well done. :) It seems like 'go back buttons' still are not working in choice windows. Do you plan on adding that mechanic?

Ok, cancel button is added.
I just forgot about it.

Btw. do you think, that method of getting user input would be more responsive if done like here? - http://forum.chaos-project.com/index.php?topic=6731.0

I didn't have time to design another UI, adjusting to custom input script, etc.
Why creating anew if there are already existing one?

Offline Kise

  • Awakened Visionist
  • **
  • Posts: 61
  • LV: 1
  • Gender: Male
    • View Profile
Re: [XP] Drago Save Layout
« Reply #4 on: October 09, 2017, 04:41:19 PM »
Ok, cancel button is added.
I just forgot about it.
Small changes make big difference :)

I didn't have time to design another UI, adjusting to custom input script, etc.
Why creating anew if there are already existing one?

Putting aside visual consistency, it seems faster and doesn't play windows sound when saving name, but that's just a sugestion. :)

One question, where can I increase the font size of save's names? I can't find it in code.
« Last Edit: October 09, 2017, 04:43:21 PM by Kise »

Offline LiTTleDRAgo

  • Astral Trancist
  • *****
  • Posts: 851
  • LV: 517
  • Gender: Male
    • View Profile
    • ~
Re: [XP] Drago Save Layout
« Reply #5 on: October 09, 2017, 06:28:38 PM »
Putting aside visual consistency, it seems faster and doesn't play windows sound when saving name, but that's just a sugestion. :)

There are no windows sound though, all of the effects are from rpgmaker sound.
At least, in my side is no windows sound at all.

One question, where can I increase the font size of save's names? I can't find it in code.

Must be hardcoded, try changing it around here:

Code: [Select]
  #--------------------------------------------------------------------------
  # * Refresh
  #--------------------------------------------------------------------------
  def refresh(create = false)
    clear_window
    @width  = 0
    @height = 0
    @drawed = []
    create && (@index = 0)
    commands.each_with_index do |c,i|
      @window_commands[i] = s = Window_Help.new
      #<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<   Add here
      s.draw_text_ex(4,0,c[:name])
      @width = @width.clamp(s.text_size(c[:name]).width+32, Graphics.width)
      @height = s.contents.height
    end

Offline Kise

  • Awakened Visionist
  • **
  • Posts: 61
  • LV: 1
  • Gender: Male
    • View Profile
Re: [XP] Drago Save Layout
« Reply #6 on: October 09, 2017, 08:50:27 PM »
There are no windows sound though, all of the effects are from rpgmaker sound.
At least, in my side is no windows sound at all.

I know there're no Windows sound in code. But still, for some reason confirmation of the save's name plays same sound as changing the volume in windows. I have no clue why.

Must be hardcoded, try changing it around here:

Code: [Select]
  #--------------------------------------------------------------------------
  # * Refresh
  #--------------------------------------------------------------------------
  def refresh(create = false)
    clear_window
    @width  = 0
    @height = 0
    @drawed = []
    create && (@index = 0)
    commands.each_with_index do |c,i|
      @window_commands[i] = s = Window_Help.new
      #<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<   Add here
      s.draw_text_ex(4,0,c[:name])
      @width = @width.clamp(s.text_size(c[:name]).width+32, Graphics.width)
      @height = s.contents.height
    end
I tried 's.contents.font.size = 22' but it didn't change anything.

Offline LiTTleDRAgo

  • Astral Trancist
  • *****
  • Posts: 851
  • LV: 517
  • Gender: Male
    • View Profile
    • ~
Re: [XP] Drago Save Layout
« Reply #7 on: October 09, 2017, 11:22:00 PM »
I tried 's.contents.font.size = 22' but it didn't change anything.

Oh, sorry. It seems because of this:

Code: [Select]
  #--------------------------------------------------------------------------
  # * Create Command
  #--------------------------------------------------------------------------
  def create_command(size)
    command = []
    size.times do |i|
      if (exist = FileTest.exist?(filename = make_filename(i)))
        content = read_content(filename)
        text = content[:game_system].instance_variable_get(:@notesavedata)
      else
        text = "---------------No Data---------------"
      end
      savedata = {} 
      savedata[:name]      = "\\}File #{i+1}: #{text}" # <<<<<<
      savedata[:condition] = exist if self.is_a?(Scene_Load)
      command.push(savedata)
    end
    command
  end

In other words it's the same as show text code (vxace)

\} = reduce font size.
\{ = increase font size.

You can also use

\c[1] = changing color.

However, this will not work and will turn out weird:

\n[1], \v[1], ... (everything that reads game data).
\b, \i (bold and italic also not work.

Note that with the double quote string, you must add one \ to each special characters.
(ex: \\c\[1\])