RPG Maker Forums

Hi there!

As the title implies, I have a problem with the window cursor, when I'm trying to use a picture instead of the windowskin-color in the background. My goal is to make something similar to this:


Using the "Emerald Skill Tree" Source Code as template.

Relevant code snippets:

class Window_CST_Trees < Window_Selectable...def initialize(tree_id) super(0, 48, 7 * 24 + 24, Graphics.height - 48) self.opacity = 0 #Only this is relevant, because it causes the windowskin to become invisible @tree_id = tree_id @data = [] if EME::SKILL_TREES::FIRST_SELECT_ACTOR and $game_party.menu_actor != nil @actor = $game_party.menu_actor else if $game_party.members[$game_party.est_last_actor_index] != nil @actor = $game_party.members[$game_party.est_last_actor_index] else @actor = $game_party.members[0] end end @trees = EME::SKILL_TREES::Trees @trees_per_actor = EME::SKILL_TREES::Trees_Per_Actor @objects = EME::SKILL_TREES::objects refresh end... def refresh make_tree_data create_contents background = Cache.picture("Hintergrund") rect = Rect.new(0,0,self.width, self.height) contents.blt(0, 0, background, rect, 255) draw_all_items select_last endend The code gives following result:


Please don't mind the window in the upper right corner, it's under construction ;)

On first sight it seems to fulfill it's job, but compared to the original, it misses the blinking cursor over the tree items. When I remove the 

background = Cache.picture("Hintergrund")rect = Rect.new(0,0,self.width, self.height)contents.blt(0, 0, background, rect, 255)part of the refresh method, the cursor is visible and blinks. After investigating it for quit a bit I found, that the update-method of the super-superclass "Window" is responsible for the cursor-display. Only problem here is, that it's in the engine-blackbox and i couldn't find the source code to the Window.update method to overwrite it.

To conclude this poorly written post (not native english speaker) my question to you is: How do I get to display the cursor above the generated background-bitmap?

I'm gratefull for any advice/solutions!


EDIT: I'm using RGSS3 :)

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,050
Messages
1,018,548
Members
137,835
Latest member
yetisteven
Top