gm-editor now features alt+o to show field offset

develop
Warmist 2012-11-18 01:48:02 +02:00
parent bbe94c006f
commit 66257cf24d
1 changed files with 4 additions and 0 deletions

@ -184,6 +184,10 @@ end
self:changeSelected(10) self:changeSelected(10)
elseif keys.SELECT then elseif keys.SELECT then
self:editSelected() self:editSelected()
elseif keys.CUSTOM_ALT_O then
local trg=self:currentTarget()
local size,off=df.sizeof(trg.target:_field(trg.keys[trg.selected]))
dialog.showMessage("Offset",string.format("Size hex=%x,%x dec=%d,%d",size,off,size,off),COLOR_WHITE)
elseif keys.CUSTOM_ALT_F then elseif keys.CUSTOM_ALT_F then
self:find() self:find()
elseif keys.CUSTOM_ALT_E then elseif keys.CUSTOM_ALT_E then