-
Content Count
4 -
Joined
-
Last visited
Content Type
Profiles
Forums
Blogs
Downloads
Calendar
Gallery
Everything posted by milkattack
-
thanks for fixing my posts, sorry about that lol. anyways I finally got all the size and cursor position the way I want it, but I have one more problem I can't seem to figure out, when i go into the skill menu or the item menu the cursor moves up and down in the first row perfectly fine, but when I move it to the second row the cursor stays on the first row! however it's still in the second row because it shows the description for the item, like so : see? its showing the description for remedy even though the cursor is still stuck in the first row, technically i can still select things in the second row but I would prefer if the cursor changes position too. is this an issue with the rows themselves? or do i need to change something here with the x coordinates? #-------------------------------------------------------------------------- # * Update Cursor Rectangle #-------------------------------------------------------------------------- def update_cursor_rect # If cursor position is less than 0 if @index < 0 self.cursor_rect.empty return end # Get current row row = @index / @column_max # If current row is before top row if row < self.top_row # Scroll so that current row becomes top row self.top_row = row end # If current row is more to back than back row if row > self.top_row + (self.page_row_max - 1) # Scroll so that current row becomes back row self.top_row = row - (self.page_row_max - 1) end # Calculate cursor width cursor_width = 32 # Calculate cursor coordinates x = @index % @column_max * (cursor_width + 64) y = @index / @column_max * 32 - self.oy # Update cursor rectangle self.cursor_rect.set(-20, y, cursor_width, 32) end EDIT: THANK YOU Tigarus it worked perfectly!!!!! finally all my menus work correctly and I can move on to something else ^^
-
aw man I messed with the calculate cursor width thing and it fixed the stretching in one area but then messed it up in another area X_____X i wish there was a way to just snap the cursor automatically to the end of each word because now in some of my choice menus its either going off the side and getting cut off, or its too close and its on top of the text , i might just give up with the cursor in some areas and just use the normal rectangle highlight thing =____= thanks for trying to help i'll just have to keep messing with it EDIT: i just that that last message I'm gonna try out what you suggested and i'll let you know if it works ^^ thanks EDIT: YES!!!!!! it worked drago thank you, idk why i didnt think sooner of just putting cursor_width= 32 lol I was thinking it would be something more complicated
-
I thought there would be some options to change the rectangle cursor in Scene_Menu or any of the Sceen_battle scripts but I didn't see any options at all for altering that in those, and the Window_partycommand script has a section for the rectangle cursor and I fixed it how I need it but it only seems to affect the window that shows the "fight" and "run" options, when the normal attack command window pops up it's stretched again. this is what my Window_command looks like around the rectangle cursor options: #-------------------------------------------------------------------------- # * Update Cursor Rectangle #-------------------------------------------------------------------------- def update_cursor_rect # If cursor position is less than 0 if @index < 0 self.cursor_rect.empty return end # Get current row row = @index / @column_max # If current row is before top row if row < self.top_row # Scroll so that current row becomes top row self.top_row = row end # If current row is more to back than back row if row > self.top_row + (self.page_row_max + 1 ) # Scroll so that current row becomes back row self.top_row = row - (self.page_row_max + 1 ) end # Calculate cursor width cursor_width = self.width / @column_max - 64 # Calculate cursor coordinates x = @index % @column_max * (cursor_width + 32) y = @index / @column_max * 32 - self.oy # Update cursor rectangle self.cursor_rect.set(32, y, cursor_width, 32) end end and this is what it looks like in Window_selectable: #-------------------------------------------------------------------------- # * Update Cursor Rectangle #-------------------------------------------------------------------------- def update_cursor_rect # If cursor position is less than 0 if @index < 0 self.cursor_rect.empty return end # Get current row row = @index / @column_max # If current row is before top row if row < self.top_row # Scroll so that current row becomes top row self.top_row = row end # If current row is more to back than back row if row > self.top_row + (self.page_row_max - 1) # Scroll so that current row becomes back row self.top_row = row - (self.page_row_max - 1) end # Calculate cursor width cursor_width = self.width / @column_max -64 # Calculate cursor coordinates x = @index % @column_max * (cursor_width + 32) y = @index / @column_max * 32 - self.oy # Update cursor rectangle self.cursor_rect.set(32, y, cursor_width, 32) end do you see anything there that could be stretching the cursor? sorry if I seem like a noob I only started scripting like two weeks ago so just when I think I'm starting to get it something like this happens and I have no idea what to do.
-
hello, I am having problems with the cursor rectangle being stretched in certain menus, I've been able to fix it in some of the menus but not others, here are some pics, the cursors with the green circles around them are what im trying to get all of them to look like, and the ones circled in red are the ones I can't figure out how to fix. this is the windowskin im using: It looks fine in the title menu: It also looks fine in the save menu: but when I open the game menu it's stretched on the side, then when I select skill it is the correct size next to the characters: BUT THEN when i select a character, it's stretched again in the skill menu, but fine next to the character select: and finally, it looks fine during battle when you select "fight" or "run", but is stretched again in the command window: anyways I just want all of the cursors to be the small 32x32 size and not stretched out like the ones circled in red. I feel like I searched all of the window scripts and fixed every rectangle cursor section i found but there are those mystery areas where I just can't find where to alter them. sorry about the pictures too i dont know how to put them behind a spoiler!