equal
deleted
inserted
replaced
1207 if sGear ~= nil then |
1207 if sGear ~= nil then |
1208 SetGearPosition(sGear, x, y) |
1208 SetGearPosition(sGear, x, y) |
1209 end |
1209 end |
1210 elseif pMode[pIndex] == loc("Deletion Mode") then |
1210 elseif pMode[pIndex] == loc("Deletion Mode") then |
1211 sGear = GetClosestGear() |
1211 sGear = GetClosestGear() |
1212 if (sGear ~= nil) and (GetGearType(sGear) ~= gtHedgehog) then |
1212 if (sGear == nil) then |
|
1213 AddCaption(loc("Please click on a gear."),0xffba00ff,capgrpVolume) |
|
1214 elseif (GetGearType(sGear) == gtHedgehog) then |
|
1215 AddCaption(loc("Hedgehogs can not be deleted."),0xffba00ff,capgrpVolume) |
|
1216 else |
1213 DeleteGear(sGear) |
1217 DeleteGear(sGear) |
1214 sGear = nil |
|
1215 end |
1218 end |
|
1219 sGear = nil |
1216 end |
1220 end |
1217 |
1221 |
1218 elseif (cat[cIndex] == loc("Hog Identity Mode")) or (cat[cIndex] == loc("Team Identity Mode")) then |
1222 elseif (cat[cIndex] == loc("Hog Identity Mode")) or (cat[cIndex] == loc("Team Identity Mode")) then |
1219 |
1223 |
1220 sGear = GetClosestGear() |
1224 sGear = GetClosestGear() |