2017-09-23 17:18 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0000268Cheat Enginepublic2013-07-27 22:47
Reportermgr_inz_Player 
Assigned ToDark Byte 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
Summary0000268: [Lua] methods and properties problems
DescriptionComponent class:
#################################################
-- DOESN'T WORK
getAddressList().getComponent(1).OnSectionClick = nil
-- and this
getAddressList().Component[1].OnSectionClick = nil


--WORKS
setMethodProperty(getAddressList().getComponent(1), 'OnSectionClick', nil)
-- and this works too
setMethodProperty(getAddressList().Component[1], 'OnSectionClick', nil)

#################################################


Strings class:
#################################################
stringlist.getString(0) -- doesn't work
strings_getString(stringlist,0) -- works
#################################################
TagsNo tags attached.
Attached Files

-Relationships
+Relationships

-Notes

~0000569

mgr_inz_Player (reporter)

My bad, Strings class works. But this doesn't:

#############
properties = getPropertyList( getAddressList().getComponent(1) )

for i=0,strings_getCount(properties)-1 do
    print( strings_getString(properties,i) )
end

-- we can't: properties.Count, properties[i] or properties.getString(i)
#############

~0000570

Dark Byte (developer)

fixed in svn
+Notes

-Issue History
Date Modified Username Field Change
2013-07-27 14:32 mgr_inz_Player New Issue
2013-07-27 15:03 mgr_inz_Player Note Added: 0000569
2013-07-27 22:47 Dark Byte Note Added: 0000570
2013-07-27 22:47 Dark Byte Status new => resolved
2013-07-27 22:47 Dark Byte Resolution open => fixed
2013-07-27 22:47 Dark Byte Assigned To => Dark Byte
+Issue History