From 109a1bd697262a9d773999aafc426a552d57b54f Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Fri, 30 Dec 2022 13:35:01 +0100 Subject: [PATCH] Improve nag display --- .../right_panel/GameTabRightPanel.cpp | 42 ++++++++++++++++++- .../right_panel/editor/EditorCanvas.cpp | 2 +- 2 files changed, 41 insertions(+), 3 deletions(-) diff --git a/src/game_tab/right_panel/GameTabRightPanel.cpp b/src/game_tab/right_panel/GameTabRightPanel.cpp index 013bc13..b294528 100644 --- a/src/game_tab/right_panel/GameTabRightPanel.cpp +++ b/src/game_tab/right_panel/GameTabRightPanel.cpp @@ -217,7 +217,45 @@ std::string GameTabRightPanel::GetNagFromStr(std::string str){ // TODO: Bind more NAG! if(str=="!") return "$1"; - if(str=="?") + else if(str=="?") return "$2"; + else if(str=="!!") + return "$3"; + else if(str=="??") + return "$4"; + else if(str=="!?") + return "$5"; + else if(str=="?!") + return "$6"; + else if(str=="=") + return "$10"; + else if(str=="∞") + return "$13"; + else if(str=="⩲") + return "$14"; + else if(str=="⩱") + return "$15"; + else if(str=="±") + return "$16"; + else if(str=="∓") + return "$17"; + else if(str=="+-") + return "$18"; + else if(str=="-+") + return "$19"; + else if(str=="⨀") + return "$22"; + else if(str=="○") + return "$26"; + else if(str=="⟳") + return "$32"; + else if(str=="↑") + return "$36"; + else if(str=="→") + return "$40"; + else if(str=="⯹") + return "$44"; + else if(str=="⨁") + return "$138"; return ""; -} \ No newline at end of file +} diff --git a/src/game_tab/right_panel/editor/EditorCanvas.cpp b/src/game_tab/right_panel/editor/EditorCanvas.cpp index acc5741..c4d389d 100644 --- a/src/game_tab/right_panel/editor/EditorCanvas.cpp +++ b/src/game_tab/right_panel/editor/EditorCanvas.cpp @@ -122,7 +122,7 @@ void EditorCanvas::DrawElement(const cgeditor::Element &e) { else if(text=="$13") text="∞"; else if(text=="$14") - text="⩲ "; + text="⩲"; else if(text=="$15") text="⩱"; else if(text=="$16")