Jump to content

Recommended Posts

Posted

Lua parser ignore block comment and when is for example commented block with properties, LE editor shows this commented properties.

--[[ .. ]] -> dont disable add properties to LE entity inspector:
 

--[[
MoveShip.integervalue = 0--"Integer value"
MoveShip.floatvalue = 0.0--"Float value"
MoveShip.stringvalue = ""--"String value"
MoveShip.booleanvalue = false--"Boolean value"
MoveShip.optionvalue = 0--"Option value" ["Option 1", "Option 2", "Option 3"]
MoveShip.entityvalue = nil--"Entity value"
MoveShip.pathvalue = ""--"Path value" SOUND
MoveShip.vec2value = Vec2(0,0)--"Vec2 value"
MoveShip.vec3value = Vec3(0,0,0)--"Vec3 value"
MoveShip.vec4value = Vec4(0,0,0,0)--"Vec4 value"
MoveShip.rgbvalue = Vec3(1,1,1)--"RGB value" COLOR
MoveShip.rgbavalue = Vec4(1,1,1,1)--"RGBA value" COLOR
]]

 

works only if is commented line separately:

--MoveShip.integervalue = 0--"Integer value"
--MoveShip.floatvalue = 0.0--"Float value"
--MoveShip.stringvalue = ""--"String value"
--MoveShip.booleanvalue = false--"Boolean value"
--MoveShip.optionvalue = 0--"Option value" ["Option 1", "Option 2", "Option 3"]
--MoveShip.entityvalue = nil--"Entity value"
--MoveShip.pathvalue = ""--"Path value" SOUND
--MoveShip.vec2value = Vec2(0,0)--"Vec2 value"
--MoveShip.vec3value = Vec3(0,0,0)--"Vec3 value"
--MoveShip.vec4value = Vec4(0,0,0,0)--"Vec4 value"
--MoveShip.rgbvalue = Vec3(1,1,1)--"RGB value" COLOR
--MoveShip.rgbavalue = Vec4(1,1,1,1)--"RGBA value" COLOR
  • Thanks 1

"... programmig is art ..."

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...