Refactor rendering to use an SFML view for placing the main UI within the overall interface

This commit is contained in:
2017-09-04 14:36:55 -04:00
parent e781653483
commit 9c69e006d8
19 changed files with 264 additions and 289 deletions

View File

@@ -36,7 +36,6 @@ extern short combat_posing_monster , current_working_monster ; // 0-5 PC 100 + x
extern sf::RenderTexture terrain_screen_gworld;
extern std::queue<pending_special_type> special_queue;
extern location ul;
extern location center;
extern short which_combat_type;
extern bool monsters_going,anim_onscreen;
@@ -273,7 +272,7 @@ void frame_active_pc(location center) {
active_pc_rect.left = 18 + where_draw.x * 28;
active_pc_rect.bottom = 54 + where_draw.y * 36;
active_pc_rect.right = 46 + where_draw.x * 28;
active_pc_rect.offset(ul);
active_pc_rect.offset(14,2);
frame_roundrect(mainPtr, active_pc_rect, 8, sf::Color::Magenta);
}