Description:
Add double-click handling.
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
|
1 | NO CONTENT: modified file, binary diff hidden |
@@ -50,6 +50,13 | |||
|
50 | 50 | { |
|
51 | 51 | ContractsWindow.selected = contract; |
|
52 | 52 | } |
|
53 | ||
|
54 | if (ImGui.IsItemHovered() && ImGui.IsMouseDoubleClicked(0)) | |
|
55 | { | |
|
56 | engine.messages.Add(new ToggleWindowMessage { Window = Window.Contract, Entity = ContractsWindow.selected.entity}); | |
|
57 | ||
|
58 | ||
|
59 | } | |
|
53 | 60 | |
|
54 | 61 | |
|
55 | 62 | ImGui.SameLine(); |
@@ -118,10 +118,9 | |||
|
118 | 118 | ImGui.PushStyleVar(ImGuiStyleVar.FrameBorderSize, 1.0f); |
|
119 | 119 | ImGui.PushStyleColor(ImGuiCol.WindowBg, new Num.Vector4(0.75f, 0.75f, 0.75f, 1f)); |
|
120 | 120 | |
|
121 | var title_bar = new Num.Vector4(0.65f, 0.65f, 0.65f, 1f); | |
|
122 | ImGui.PushStyleColor(ImGuiCol.TitleBg, title_bar); | |
|
123 |
ImGui.PushStyleColor(ImGuiCol.TitleBg |
|
|
124 | ImGui.PushStyleColor(ImGuiCol.TitleBgCollapsed, title_bar); | |
|
121 | ImGui.PushStyleColor(ImGuiCol.TitleBg, StyleSet.title_bar); | |
|
122 | ImGui.PushStyleColor(ImGuiCol.TitleBgActive, StyleSet.title_bar); | |
|
123 | ImGui.PushStyleColor(ImGuiCol.TitleBgCollapsed, StyleSet.title_bar); | |
|
125 | 124 | |
|
126 | 125 | ImGui.PushStyleColor(ImGuiCol.Border, new Num.Vector4(0f, 0f, 0f, 1f)); |
|
127 | 126 | ImGui.PushStyleColor(ImGuiCol.BorderShadow, new Num.Vector4(0f, 0f, 0f, 0.5f)); |
You need to be logged in to leave comments.
Login now