Author Topic: RMXP Windows, how does the Cursor update?  (Read 300 times)

Offline Heretic86

  • Astral Trancist
  • *****
  • Posts: 745
  • LV: 29
    • View Profile
RMXP Windows, how does the Cursor update?
« on: October 26, 2017, 02:14:43 AM »
Anyone know the method or even how to control the Cursor object in the Windows Selectable class?  Im just playing around with windows and menus, and there isnt much for a scrolling horizontal menu window...
Current Scripts:
Heretic's Moving Platforms

Current Demos:
Collection of Art and 100% Compatible Scripts

(Script Demos are all still available in the Collection link above.  I lost some individual demos due to a server crash.)

Online KK20

  • Master Scripter Fixer
  • Global Moderator
  • Guardian of Chaos
  • ****
  • Posts: 3097
  • LV: 374
  • Gender: Male
  • Choco Octo <3
    • View Profile
Re: RMXP Windows, how does the Cursor update?
« Reply #1 on: October 26, 2017, 02:27:25 AM »
The cursor isn't really an object. It's just a Rect that you specify the dimensions to and it draws a cursor there (a la hidden Window class). There are also plenty of examples of horizontal scrolling windows out there too.



Other Projects
RPG Maker XP AceUpgrade RMXP to RMVXA performance!
XPA TilemapTilemap rewrite with many features, including custom resolution!


NNID: KK20-CP
Discord: KK20 Tyler#8901

Offline Heretic86

  • Astral Trancist
  • *****
  • Posts: 745
  • LV: 29
    • View Profile
Re: RMXP Windows, how does the Cursor update?
« Reply #2 on: October 26, 2017, 03:20:59 AM »
Stoopid hidden Windows class.

Mostly its about playing with stuff since menus arent when I spent my time learning.  I'd like to know what it was calling to change its opacity so I can do my own and customize it, or replace it entirely and dont need to call super, which screws things up...
Current Scripts:
Heretic's Moving Platforms

Current Demos:
Collection of Art and 100% Compatible Scripts

(Script Demos are all still available in the Collection link above.  I lost some individual demos due to a server crash.)

Online KK20

  • Master Scripter Fixer
  • Global Moderator
  • Guardian of Chaos
  • ****
  • Posts: 3097
  • LV: 374
  • Gender: Male
  • Choco Octo <3
    • View Profile
Re: RMXP Windows, how does the Cursor update?
« Reply #3 on: October 26, 2017, 03:29:54 AM »
Yep, going to need a window rewrite, like XPA_Window.
Or just switch to XPA.
Because XPA is life.



Other Projects
RPG Maker XP AceUpgrade RMXP to RMVXA performance!
XPA TilemapTilemap rewrite with many features, including custom resolution!


NNID: KK20-CP
Discord: KK20 Tyler#8901

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19962
  • LV: 642
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: RMXP Windows, how does the Cursor update?
« Reply #4 on: October 26, 2017, 07:57:29 AM »
Feel free to take a look at XPA_Window to see how I implemented things.
Horizontal scrolling is actually natively support in XP Windows, you just have to setup the Window#ox value for the internal Bitmap position and the Window#cursor_rect Rect object for the cursor position. Window_Selectable actually has an implementation for vertical scrolling. You can just apply the same logic for horizontal scrolling.
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline Heretic86

  • Astral Trancist
  • *****
  • Posts: 745
  • LV: 29
    • View Profile
Re: RMXP Windows, how does the Cursor update?
« Reply #5 on: October 27, 2017, 09:16:15 PM »
Thanks.  I never thought to look at .ox or .oy to cause scrolling menus.
Current Scripts:
Heretic's Moving Platforms

Current Demos:
Collection of Art and 100% Compatible Scripts

(Script Demos are all still available in the Collection link above.  I lost some individual demos due to a server crash.)

Offline Heretic86

  • Astral Trancist
  • *****
  • Posts: 745
  • LV: 29
    • View Profile
Re: RMXP Windows, how does the Cursor update?
« Reply #6 on: November 04, 2017, 09:55:04 AM »
Okay, I got things working, mostly the way I want.  Still just messing around to familiarize myself with how menus work since it is really the only thing I never tore in to very much.

Next question.  Any way to hide the Scroll Arrows?

Code I got so far: (again, just playing...) 

(click to show/hide)

Make a new project and throw it in above main, then go to the menu screen...
Current Scripts:
Heretic's Moving Platforms

Current Demos:
Collection of Art and 100% Compatible Scripts

(Script Demos are all still available in the Collection link above.  I lost some individual demos due to a server crash.)

Online KK20

  • Master Scripter Fixer
  • Global Moderator
  • Guardian of Chaos
  • ****
  • Posts: 3097
  • LV: 374
  • Gender: Male
  • Choco Octo <3
    • View Profile
Re: RMXP Windows, how does the Cursor update?
« Reply #7 on: November 04, 2017, 09:59:56 AM »
Not in RGSS1, unless, again, you are using a custom windows script.
You could try altering the bitmap graphic and fill_rect the area of the windowskin where the arrows are drawn.

Meanwhile in RGSS3
Code: [Select]
arrows_visible (RGSS3)
The visibility of scrolling arrows. If TRUE, the arrows are visible. The default is TRUE.
coughXPAcough
« Last Edit: November 04, 2017, 10:18:07 AM by KK20 »



Other Projects
RPG Maker XP AceUpgrade RMXP to RMVXA performance!
XPA TilemapTilemap rewrite with many features, including custom resolution!


NNID: KK20-CP
Discord: KK20 Tyler#8901