Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 8, 2010, 1:27:51 PM (13 years ago)
Author:
konrad
Message:

decision popup in ingame menu has been changed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/data/gui/scripts/GUITools.lua

    r7690 r7726  
    172172
    173173        local item = list[P.index+1]
    174         local child = item["button"]
     174        local child = item["button"]
     175        local s = child:getProperty("NormalImageRightEdge")
    175176
    176177        --teste ob der Button nicht schon gehighlightet ist
    177         if child:getProperty("NormalImageRightEdge") == "set:TaharezGreenLook image:ButtonRightHighlight" then
     178        if string.sub(s,string.len(s)-8,string.len(s)) == "Highlight" then
    178179            --nop
    179180        else
     
    201202                local item = list[i]
    202203                local child = item["button"]
    203                     if child:getProperty("NormalImageRightEdge") == "set:TaharezGreenLook image:ButtonRightHighlight" then
     204                local s = child:getProperty("NormalImageRightEdge")
     205                    if string.sub(s,string.len(s)-8,string.len(s)) == "Highlight" then
    204206                        child:setProperty("NormalImageRightEdge", string.sub(child:getProperty("NormalImageRightEdge"),1,-10) .. "Normal")
    205207                        child:setProperty("NormalImageLeftEdge", string.sub(child:getProperty("NormalImageLeftEdge"),1,-10) .. "Normal")
     
    210212                i=i+1
    211213        end
    212     end
    213    
     214    end 
     215
    214216    --enter
    215     if code == "28" and P.index >= 0 then
     217    if code == "28" then
    216218        local item = list[P.index+1]
    217219        local child = item["button"]
Note: See TracChangeset for help on using the changeset viewer.