Changeset 7726 for code/trunk/data/gui/scripts/GUITools.lua
- Timestamp:
- Dec 8, 2010, 1:27:51 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/data/gui/scripts/GUITools.lua
r7690 r7726 172 172 173 173 local item = list[P.index+1] 174 local child = item["button"] 174 local child = item["button"] 175 local s = child:getProperty("NormalImageRightEdge") 175 176 176 177 --teste ob der Button nicht schon gehighlightet ist 177 if child:getProperty("NormalImageRightEdge") == "set:TaharezGreenLook image:ButtonRightHighlight" then178 if string.sub(s,string.len(s)-8,string.len(s)) == "Highlight" then 178 179 --nop 179 180 else … … 201 202 local item = list[i] 202 203 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 204 206 child:setProperty("NormalImageRightEdge", string.sub(child:getProperty("NormalImageRightEdge"),1,-10) .. "Normal") 205 207 child:setProperty("NormalImageLeftEdge", string.sub(child:getProperty("NormalImageLeftEdge"),1,-10) .. "Normal") … … 210 212 i=i+1 211 213 end 212 end 213 214 end 215 214 216 --enter 215 if code == "28" and P.index >= 0then217 if code == "28" then 216 218 local item = list[P.index+1] 217 219 local child = item["button"]
Note: See TracChangeset
for help on using the changeset viewer.