Add menus to Linux character editor

Patch from @x-qq
This commit is contained in:
2020-02-01 19:16:18 -05:00
parent ef734d60d3
commit 5675ab8c71
14 changed files with 339 additions and 64 deletions

View File

@@ -28,13 +28,11 @@ extern rectangle name_rect;
extern rectangle pc_race_rect;
extern rectangle edit_rect[5];
bool handle_action(sf::Event event) {
location the_point;
bool handle_action(sf::Event const & event) {
location the_point = translate_mouse_coordinates({event.mouseButton.x, event.mouseButton.y});
bool to_return = false;
the_point = {event.mouseButton.x, event.mouseButton.y};
if(file_in_mem.empty())
return false;