And while I can do that with
that only works for the default size of 544 and 416. If I were to change the screen size I'd have to constantly fiddle with it to put it back in the middle, and knowing how indecisive I am I would be doing that a lot. I did some digging through the engine and found
this in window_titlecommand. I tried adding it to the scenebase create_command_window instead as
to see if it would work, but I get an error that width isn't defined. I've tried combing through the maker to see where I'm missing it could have been defined to see if adding it would help, but I haven't had any luck so far. I tried googling only that didn't really turn up anything either. What am I missing here? 😩
Code:
@command_window.x = 190
@command_window.y = 150
that only works for the default size of 544 and 416. If I were to change the screen size I'd have to constantly fiddle with it to put it back in the middle, and knowing how indecisive I am I would be doing that a lot. I did some digging through the engine and found
Code:
def update_placement
self.x = (Graphics.width - width) / 2
self.y = (Graphics.height * 1.6 - height) / 2
end
this in window_titlecommand. I tried adding it to the scenebase create_command_window instead as
Code:
@command_window.x = (Graphics.width - width) / 2
to see if it would work, but I get an error that width isn't defined. I've tried combing through the maker to see where I'm missing it could have been defined to see if adding it would help, but I haven't had any luck so far. I tried googling only that didn't really turn up anything either. What am I missing here? 😩