Commit graph

9 commits

Author SHA1 Message Date
Aloshi 654b93dd94 Scraper GUIs open faster.
The ScraperSearchComponent uses a custom font size for metadata/descriptions.
This was causing a short hang when it got resized multiple times (because it would rasterize like 4 fonts unnecessarily).
So, I added an "update" parameter to ComponentGrid::setRowHeightPerc/setColWidthPerc.
This can be used to only cause *one* resize/reposition "event" when setting multiple cell sizes (as is typical) by passing "false" as the last argument and then using ComponentGrid::setSize after setting all of the cell sizes.
2014-05-14 17:47:28 -05:00
Aloshi 41d8263086 Finishing touches on ScraperSearchComponent. 2014-03-25 17:47:36 -05:00
Aloshi b44703c716 More design tweaks. 2014-03-25 12:13:41 -05:00
Aloshi 7ca0b0fe72 Help is now horizontal instead of vertical.
Shortened most help texts.
2014-03-23 20:33:27 -05:00
Aloshi ada4f83089 Fixed ComponentList not passing focus to entries.
Some improvements to TextEditComponent:
- cursor now repeats if you hold left/right
- use FONT_PATH_LIGHT instead of regular to match UI concepts
- added some horizontal and vertical padding to the text area
- cursor is a little thinner and not as freakishly tall
2014-03-20 21:47:45 -05:00
Aloshi 088b146fe9 Redid message boxes. 2014-03-15 12:18:50 -05:00
Aloshi 18b428f79a Fixed help system being broken for MenuComponent. Still missing in a few places.
Added some "BACK" buttons to various GUIs.
2014-03-13 14:09:50 -05:00
Aloshi bbb8aeeac3 Completely rewrote ComponentGrid to use shared pointers, have support for
borders, work better with nested components, and generally suck less.
Split the scraper screen into a "ScraperSearchComponent" so it can be reused in other menus (what could this possibly mean for the future?!).
Re-designed the ScraperSearchComponent to fit UI concepts.
Added the ability to put a row of buttons at the bottom of a MenuComponent.
Redid GuiMetaDataEd to use a MenuComponent instead of ComponentGrid.
Redid GuiGameScraper to use a ComponentGrid containing a ScraperSearchComponent.
Fixed Renderer::pushClipRect not clipping new rects to be within the bounds of the existing clipRect stack.
A ton of little fixes that I forgot to mention.
It's a good thing I'm the only developer currently, or I would have to actually break this into multiple commits.
2014-03-11 22:00:08 -05:00
Aloshi 139fc720ac Moved Guis from src/components to src/guis.
Renamed ComponentListComponent to ComponentGrid.
Changed some older files' #ifdefs to #pragma once to be more consistent.
2014-02-28 19:00:38 -06:00
Renamed from src/components/ComponentListComponent.cpp (Browse further)