Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 27, 2010, 10:39:48 PM (14 years ago)
Author:
dafrick
Message:

Small adjustment to MainMenu.lua to illustrate how to change how a button looks like.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/menu/data/gui/scripts/MainMenu.lua

    r7588 r7594  
    4242        end
    4343        local child = window:getChildAtIdx(P.index-1)
     44        child:setProperty("NormalImageRightEdge", string.sub(child:getProperty("NormalImageRightEdge"),1,-7) .. "Highlight")
     45        child:setProperty("NormalImageLeftEdge", string.sub(child:getProperty("NormalImageLeftEdge"),1,-7) .. "Highlight")
     46        child:setProperty("NormalImageBackground", string.sub(child:getProperty("NormalImageBackground"),1,-7) .. "Highlight")
    4447    elseif tostring(we.scancode) == "28" and P.index ~= 0 then
    4548        if P.index == 1 then
Note: See TracChangeset for help on using the changeset viewer.