Mousie: The Mouse System
#61
This works for me?
Code:
$game_variables[1] =
Mouse.pos_x
$game_variables[2] =
Mouse.pos_y
Reply }
#62
interesting, you did that in a script call from an event?
[Image: AVvXsEga1vIr5Rx3FkoFbGo1OoMJAqgq6TeqcbpF...L3AWg=s752]

BLOG: JayVinci.blogspot.com
FORUM COMING SOON
Currently working on:
Ambitions: RPG Developer Bakin
Heart of Vox: RPG Developer Bakin
Reply }
#63
Sure did. Even used Mouse.click?(Left_Click) in an event's script branch condition.
Reply }
#64
Mechanical Pen: How? This is what I created as far as an event, and I get a syntax error..


[Image: question.png]
[Image: AVvXsEga1vIr5Rx3FkoFbGo1OoMJAqgq6TeqcbpF...L3AWg=s752]

BLOG: JayVinci.blogspot.com
FORUM COMING SOON
Currently working on:
Ambitions: RPG Developer Bakin
Heart of Vox: RPG Developer Bakin
Reply }
#65
It's ' Mouse.click?(Mouse::Left_Click) ' not ' Mouse.click?(Left_Click) '
Reply }
#66
got them both working, GUI is awesome!!! (just sayin)
[Image: AVvXsEga1vIr5Rx3FkoFbGo1OoMJAqgq6TeqcbpF...L3AWg=s752]

BLOG: JayVinci.blogspot.com
FORUM COMING SOON
Currently working on:
Ambitions: RPG Developer Bakin
Heart of Vox: RPG Developer Bakin
Reply }
#67
Riddle me this.   When is a BUMP not a BUMP?

When I'm BUMPING a supplemental system/script.

Has it really been 3 years since my last update?  Well, you have to thank yamina-chan for this one.  She noticed that the Windows Edits which were initially crafted by Lambchop/Amaranth/Amanda Fitch ... didn't properly align the mouse with the characters drawn in the Name Edit window.

Provided below is the new mouse operation method from within the 'Window_NameInput' class.  This method is also available within the complete 'Window Edits' in the main post, but not within the demo itself.  When downloading the demo, you must still update the window edits within.
Code:
  #--------------------------------------------------------------------------

  # * Perform mouse operations
  #--------------------------------------------------------------------------
  def mouse_operation
    index = @index
    mx = Mouse.pos_x - (self.x - self.ox + 16)
    my = Mouse.pos_y - (self.y - self.oy + 16)
    width   = 28
    height  = 32
    # Exit if between Capital and non-caps
    if ( Mouse.pos_x > 296 && Mouse.pos_x < 350)
      return
    end
    # Switch mx area if going from caps to/from non-caps
    if Mouse.pos_x <= 318
      mx -= 136
    elsif Mouse.pos_x >= 337
      mx -= 166
    end
    for index in 0...180
      x = 4 + index / 5 / 9 * 152 + index % 5 * 32
      y = index / 5 % 9 * 32
      if mx > x and
          mx < x + width and
          my > y and
          my < y + height
        $game_system.se_play($data_system.cursor_se) unless @index == index
        @index = index
        break
      end
    end
    # Set Y condition for outside boundary check
    # Value of 9 could be 8 ( 8 * 32)  as Last row in CHARACTER_TABLE empty.
    y = 9 * 32
    # Outside test
    outside = false
    outside = true if mx < 4
    outside = true if mx > 312
    outside = true if my < 4
    outside = true if my > y
    # Go to 'OK' if outside character window
    if outside
      $game_system.se_play($data_system.cursor_se) unless @index == 180
      @index = 180
    end
  end

Um, if anyone wants to make the right mouse click delete letters in the name window (rather than the ESC) button, please consider this snippet from Scene_Name:
Code:
#--------------------------------------------------------------------------
  # * Frame Update
  #--------------------------------------------------------------------------
  def update
    # Update windows
    @edit_window.update
    @input_window.update
    # If B button was pressed
    if Input.repeat?(Input::B)
      # If cursor position is at 0
      if @edit_window.index == 0
        return
      end
      # Play cancel SE
      $game_system.se_play($data_system.cancel_se)
      # Delete text
      @edit_window.back
      return
    end
[/code
]The line that reads
[code]if Input.repeat?(Input::B)
may just as easily read as:
Code:
if Input.repeat?(Input::B) or Mouse.click?(Mouse::Right_Click)

Enjoy.
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)

[Image: QrnbKlx.jpg]
[Image: sGz1ErF.png]    [Image: liM4ikn.png]    [Image: fdzKgZA.png]    [Image: sj0H81z.png]
[Image: QL7oRau.png]    [Image: uSqjY09.png]    [Image: GAA3qE9.png]    [Image: 2Hmnx1G.png]    [Image: BwtNdKw.png%5B]
  Above are clickable links
Reply }
#68
Star 
=D
Thank you for finding out what was wrong and for correcting said issue. Very cheery


"And insofar as menu edits, please give credit to yamina-chan who noticed that the default windows edits had not considered proper spacing and handling where the Name Edit Window was concerned." <- *from the first post*
There's really no need for anyone to credit me for that...
Friendship is born at that moment when one person says to another: "What! You, too? Thought I was the only one." (C.S. Lewis)
For the time you're laughing, there's nothing wrong in the world. (Colin Mochrie)

If it's funny, make sure people laugh. If it's not funny, make it funny (unless it's actually really serious). (silvercheers)

Please don't spell my name "Yamina-chan". It's all small. Thank you =D
Reply }


Possibly Related Threads…
Thread Author Replies Views Last Post
   The Wanderers: The Customizable Encounters System DerVVulfman 0 273 08-24-2024, 07:12 PM
Last Post: DerVVulfman
   Aleworks Input Mouse Sprite Add-On DerVVulfman 2 1,806 09-21-2023, 02:56 PM
Last Post: DerVVulfman
   MKXP Compatible Mouse Add-on DerVVulfman 1 1,413 08-30-2023, 08:54 PM
Last Post: kyonides
   Super Simple Vehicle System - Enhanced DerVVulfman 65 94,958 06-02-2023, 06:16 PM
Last Post: Sujabes467
   Zenith Tactical Battle System Plus (ZTBS+) DerVVulfman 0 2,864 05-10-2022, 10:42 PM
Last Post: DerVVulfman
   Commercial System Package DerVVulfman 11 14,347 01-04-2020, 12:37 AM
Last Post: Pelip
   ACBS - Atoa Custom Battle System 3.2 Victor Sant 150 256,358 03-02-2019, 04:47 AM
Last Post: dragonprincess44
   DerVV's Simple Popup System DerVVulfman 4 12,254 10-08-2017, 04:53 PM
Last Post: DerVVulfman
   Melly-Mel's Calendar System DerVVulfman 23 43,689 12-02-2016, 04:31 AM
Last Post: DerVVulfman
   The Magey Mage's Spellbook System DerVVulfman 3 10,000 10-31-2016, 01:45 AM
Last Post: Noctis



Users browsing this thread: 1 Guest(s)