Description:
Add tooltips.
Commit status:
[Not Reviewed]
References:
Comments:
0 Commit comments 0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
Add another comment

r263:8ba5d666e662 -

@@ -21,6 +21,8
21 private static ImageMap map;
21 private static ImageMap map;
22 private static IntPtr _imGuiTexture;
22 private static IntPtr _imGuiTexture;
23
23
24 private static bool show = false;
25
24 public static void LoadContent(ImGuiRenderer _imGuiRenderer, ImageMap map)
26 public static void LoadContent(ImGuiRenderer _imGuiRenderer, ImageMap map)
25 {
27 {
26
28
@@ -86,6 +88,16
86 if (delta_trees != null)
88 if (delta_trees != null)
87 {
89 {
88 ImGui.Text("Sustainability: ");
90 ImGui.Text("Sustainability: ");
91 ImGui.SameLine();
92 ImGui.TextDisabled("(?)");
93 if (ImGui.IsItemHovered())
94 {
95 var rect = ImGui.GetItemRectMax();
96 ImGui.SetNextWindowPos(rect + new Num.Vector2(15, 0));
97 ImGui.BeginTooltip();
98 ImGui.Text("Are logged trees replaced?");
99 ImGui.EndTooltip();
100 }
89
101
90
102
91 ImGui.SameLine();
103 ImGui.SameLine();
@@ -11,6 +11,7
11 public static Num.Vector4 grey = new Num.Vector4(0.75f, 0.75f, 0.75f, 1f);
11 public static Num.Vector4 grey = new Num.Vector4(0.75f, 0.75f, 0.75f, 1f);
12 public static Num.Vector4 darkgrey = new Num.Vector4(0.45f, 0.45f, 0.45f, 1f);
12 public static Num.Vector4 darkgrey = new Num.Vector4(0.45f, 0.45f, 0.45f, 1f);
13 public static Num.Vector4 black = new Num.Vector4(0f, 0f, 0f, 1f);
13 public static Num.Vector4 black = new Num.Vector4(0f, 0f, 0f, 1f);
14 public static Num.Vector4 white = new Num.Vector4(1f, 1f, 1f, 1f);
14 public static Num.Vector4 title_bar = new Num.Vector4(0.65f, 0.65f, 0.65f, 1f);
15 public static Num.Vector4 title_bar = new Num.Vector4(0.65f, 0.65f, 0.65f, 1f);
15 public static Dictionary<ImGuiStyleVar, float> defaultWindowVars = new Dictionary<ImGuiStyleVar, float>{
16 public static Dictionary<ImGuiStyleVar, float> defaultWindowVars = new Dictionary<ImGuiStyleVar, float>{
16 { ImGuiStyleVar.FrameRounding, 0.0f },
17 { ImGuiStyleVar.FrameRounding, 0.0f },
@@ -36,6 +37,8
36 {ImGuiCol.Border, black},
37 {ImGuiCol.Border, black},
37 {ImGuiCol.BorderShadow, black},
38 {ImGuiCol.BorderShadow, black},
38
39
40 {ImGuiCol.PopupBg, white},
41
39 {ImGuiCol.Button, grey},
42 {ImGuiCol.Button, grey},
40 {ImGuiCol.Text, black}
43 {ImGuiCol.Text, black}
41 };
44 };
You need to be logged in to leave comments. Login now