Description:
Refactor out some widgets.
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
@@ -122,13 +122,7 | |||||
|
122 | ImGui.DragFloat("##Scale", ref io.FontGlobalScale, 0.005f, 0.2f, 5.0f, "%.2f"); |
|
122 | ImGui.DragFloat("##Scale", ref io.FontGlobalScale, 0.005f, 0.2f, 5.0f, "%.2f"); |
|
123 |
|
123 | ||
|
124 | ImGui.SameLine(); |
|
124 | ImGui.SameLine(); |
|
125 | ImGui.TextDisabled("(?)"); |
|
125 | Widgets.LabelTooltip("(?)", "Adjust this if increasing font size isn't enough."); |
|
126 | if (ImGui.IsItemHovered()) |
|
||
|
127 | { |
|
||
|
128 | ImGui.BeginTooltip(); |
|
||
|
129 | ImGui.Text("Adjust this if increasing font size isn't enough."); |
|
||
|
130 | ImGui.EndTooltip(); |
|
||
|
131 | } |
|
||
|
132 |
|
126 | ||
|
133 | ImGui.Checkbox("Fullscreen", ref newFullscreen); |
|
127 | ImGui.Checkbox("Fullscreen", ref newFullscreen); |
|
134 |
|
128 | ||
@@ -155,13 +149,7 | |||||
|
155 | ImGui.EndCombo(); |
|
149 | ImGui.EndCombo(); |
|
156 | } |
|
150 | } |
|
157 | ImGui.SameLine(); |
|
151 | ImGui.SameLine(); |
|
158 | ImGui.TextDisabled("(?)"); |
|
152 | Widgets.LabelTooltip("(?)", "Removes profanity from the game, if you must."); |
|
159 | if (ImGui.IsItemHovered()) |
|
||
|
160 | { |
|
||
|
161 | ImGui.BeginTooltip(); |
|
||
|
162 | ImGui.Text("Removes profanity from the game, if you must."); |
|
||
|
163 | ImGui.EndTooltip(); |
|
||
|
164 | } |
|
||
|
165 |
|
153 | ||
|
166 | ImGui.Separator(); |
|
154 | ImGui.Separator(); |
|
167 |
|
155 |
@@ -27,6 +27,12 | |||||
|
27 | Widgets.Tooltip(text, new Num.Vector2(15, 0)); |
|
27 | Widgets.Tooltip(text, new Num.Vector2(15, 0)); |
|
28 | } |
|
28 | } |
|
29 |
|
29 | ||
|
|
30 | public static void LabelTooltip(string label_text, string tooltip_text) | ||
|
|
31 | { | ||
|
|
32 | ImGui.TextDisabled(label_text); | ||
|
|
33 | Widgets.Tooltip(tooltip_text, new Num.Vector2(15, 0)); | ||
|
|
34 | } | ||
|
|
35 | |||
|
30 | public static void Indicator(string text, Num.Vector4 color) |
|
36 | public static void Indicator(string text, Num.Vector4 color) |
|
31 | { |
|
37 | { |
|
32 | var dimensions = ImGui.CalcTextSize(text); |
|
38 | var dimensions = ImGui.CalcTextSize(text); |
You need to be logged in to leave comments.
Login now