Skip to content

Commit

Permalink
exp: use text widget for indices and free items in edicts table
Browse files Browse the repository at this point in the history
this makes it consistent with the rest of expmode tables
  • Loading branch information
alexey-lysiuk committed Nov 14, 2024
1 parent 0bbfa70 commit b7a194a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Misc/qs_pak/scripts/expmode_edicts.lua
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ local imTableFlags <const> = ImGui.TableFlags
local imHoveredFlagsDelayNormal <const> = ImGui.HoveredFlags.DelayNormal
local imMouseButtonRight <const> = ImGui.MouseButton.Right
local imNoOpenOverExistingPopup <const> = ImGui.PopupFlags.NoOpenOverExistingPopup
local imSelectableDisabled <const> = ImGui.SelectableFlags.Disabled
local imTableColumnIsHovered <const> = imTableColumnFlags.IsHovered
local imTableColumnWidthFixed <const> = imTableColumnFlags.WidthFixed
local imWindowNoSavedSettings <const> = ImGui.WindowFlags.NoSavedSettings
Expand Down Expand Up @@ -306,11 +305,11 @@ local function edictstable(title, entries, tableflags)

imTableNextRow()
imTableNextColumn()
imSelectable(entry.index, false, imSelectableDisabled)
imText(entry.index)
imTableNextColumn()

if entry.isfree then
imSelectable(entry.descriptionid, false, imSelectableDisabled)
imText(description)
else
if imSelectable(entry.descriptionid) then
edictinfo(entry.edict):movetocursor()
Expand Down

0 comments on commit b7a194a

Please sign in to comment.