Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
peterix committed Jan 15, 2013
2 parents e06b690 + 99ec3d9 commit b969495
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/gui/gm-editor.lua
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ function GmEditorUi:editSelected(index,choice)
--print(type(trg.target[trg.keys[trg.selected]]),trg.target[trg.keys[trg.selected]]._kind or "")
local trg_type=type(trg.target[trg_key])
if trg_type=='number' or trg_type=='string' then --ugly TODO: add metatable get selected
dialog.showInputPrompt(trg_key,"Enter new value:",COLOR_WHITE,
dialog.showInputPrompt(tostring(trg_key),"Enter new value:",COLOR_WHITE,
tostring(trg.target[trg_key]),self:callback("commitEdit",trg_key))

elseif trg_type=='boolean' then
Expand Down

0 comments on commit b969495

Please sign in to comment.