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

r253:7ad392ebe2c9 -

1 NO CONTENT: modified file, binary diff hidden
NO CONTENT: modified file, binary diff hidden
@@ -50,6 +50,13
50 {
50 {
51 ContractsWindow.selected = contract;
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 ImGui.SameLine();
62 ImGui.SameLine();
@@ -118,10 +118,9
118 ImGui.PushStyleVar(ImGuiStyleVar.FrameBorderSize, 1.0f);
118 ImGui.PushStyleVar(ImGuiStyleVar.FrameBorderSize, 1.0f);
119 ImGui.PushStyleColor(ImGuiCol.WindowBg, new Num.Vector4(0.75f, 0.75f, 0.75f, 1f));
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);
121 ImGui.PushStyleColor(ImGuiCol.TitleBg, StyleSet.title_bar);
122 ImGui.PushStyleColor(ImGuiCol.TitleBg, title_bar);
122 ImGui.PushStyleColor(ImGuiCol.TitleBgActive, StyleSet.title_bar);
123 ImGui.PushStyleColor(ImGuiCol.TitleBgActive, title_bar);
123 ImGui.PushStyleColor(ImGuiCol.TitleBgCollapsed, StyleSet.title_bar);
124 ImGui.PushStyleColor(ImGuiCol.TitleBgCollapsed, title_bar);
125
124
126 ImGui.PushStyleColor(ImGuiCol.Border, new Num.Vector4(0f, 0f, 0f, 1f));
125 ImGui.PushStyleColor(ImGuiCol.Border, new Num.Vector4(0f, 0f, 0f, 1f));
127 ImGui.PushStyleColor(ImGuiCol.BorderShadow, new Num.Vector4(0f, 0f, 0f, 0.5f));
126 ImGui.PushStyleColor(ImGuiCol.BorderShadow, new Num.Vector4(0f, 0f, 0f, 0.5f));
You need to be logged in to leave comments. Login now