2456 |
2456 |
2457 function updateHelp() |
2457 function updateHelp() |
2458 |
2458 |
2459 if (GetCurAmmoType() ~= amGirder) and (GetCurAmmoType() ~= amRubber) and (GetCurAmmoType() ~= amAirAttack) then |
2459 if (GetCurAmmoType() ~= amGirder) and (GetCurAmmoType() ~= amRubber) and (GetCurAmmoType() ~= amAirAttack) then |
2460 |
2460 |
2461 ShowMission ( |
2461 showHedgeEditorMissionPanel() |
2462 loc("HEDGE EDITOR"), |
2462 |
2463 loc("(well... kind of...)"), |
|
2464 loc("Place Girder: Girder") .. "|" .. |
|
2465 loc("Place Rubber: Rubber") .. "|" .. |
|
2466 loc("Place Gear: Air Attack") .. "|" .. |
|
2467 loc("Change Selection: [Up], [Down], [Left], [Right]") .. "|" .. |
|
2468 loc("Toggle Help: Precise+1 (While a tool is selected)") .. "|" .. |
|
2469 " " .. "|" .. |
|
2470 loc("COMMANDS: (Use while no weapon is selected)") .. "|" .. |
|
2471 loc("Save Level: Precise+4") .. "|" .. |
|
2472 loc("Toggle Editing Weapons and Tools: Precise+2") .. "|" .. |
|
2473 " " .. "|" .. |
|
2474 "", 4, 5000 |
|
2475 ) |
|
2476 --4 |
|
2477 elseif cat[cIndex] == loc("Girder Placement Mode") then |
2463 elseif cat[cIndex] == loc("Girder Placement Mode") then |
2478 |
2464 |
2479 ShowMission ( |
2465 ShowMission ( |
2480 loc("GIRDER PLACEMENT MODE"), |
2466 loc("GIRDER PLACEMENT MODE"), |
2481 loc("Use this mode to place girders"), |
2467 loc("Use this mode to place girders"), |
3145 |
3131 |
3146 RedefineSubset() |
3132 RedefineSubset() |
3147 |
3133 |
3148 end |
3134 end |
3149 |
3135 |
|
3136 function showHedgeEditorMissionPanel() |
|
3137 ShowMission ( |
|
3138 loc("HEDGEEDITOR"), |
|
3139 loc("An experimental (and buggy!) editing tool for missions and more"), |
|
3140 loc("Manual: https://hedgewars.org/hedgeeditor") .. "|" .. |
|
3141 " " .. "|" .. |
|
3142 loc("Place Girder: Girder") .. "|" .. |
|
3143 loc("Place Rubber: Rubber") .. "|" .. |
|
3144 loc("Place Gears (and more): Air Attack") .. "|" .. |
|
3145 loc("Change Selection: [Up], [Down], [Left], [Right]") .. "|" .. |
|
3146 loc("Toggle Help: Precise+1 (While a tool is selected)") .. "|" .. |
|
3147 " " .. "|" .. |
|
3148 loc("COMMANDS: (Use while no weapon is selected)") .. "|" .. |
|
3149 loc("Save Level: Precise+4") .. "|" .. |
|
3150 loc("Toggle Editing Weapons and Tools: Precise+2") .. "|" .. |
|
3151 " " .. "|" .. |
|
3152 "", 4, 5000 |
|
3153 ) |
|
3154 end |
|
3155 |
3150 function onGameStart() |
3156 function onGameStart() |
3151 |
3157 |
3152 trackTeams() |
3158 trackTeams() |
3153 |
3159 |
3154 |
3160 |
3155 InterpretPoints() |
3161 InterpretPoints() |
3156 LoadLevelData() |
3162 LoadLevelData() |
3157 |
3163 |
3158 ShowMission ( |
3164 showHedgeEditorMissionPanel() |
3159 loc("HEDGE EDITOR"), |
|
3160 loc("(well... kind of...)"), |
|
3161 loc("Place Girder: Girder") .. "|" .. |
|
3162 loc("Place Rubber: Rubber") .. "|" .. |
|
3163 loc("Place Gear: Air Attack") .. "|" .. |
|
3164 loc("Change Selection: [Up], [Down], [Left], [Right]") .. "|" .. |
|
3165 loc("Toggle Help: Precise+1 (While a tool is selected)") .. "|" .. |
|
3166 " " .. "|" .. |
|
3167 loc("COMMANDS: (Use while no weapon is selected)") .. "|" .. |
|
3168 loc("Save Level: Precise+4") .. "|" .. |
|
3169 loc("Toggle Editing Weapons and Tools: Precise+2") .. "|" .. |
|
3170 " " .. "|" .. |
|
3171 "", 4, 5000 |
|
3172 ) |
|
3173 |
|
3174 |
3165 |
3175 sCirc = AddVisualGear(0,0,vgtCircle,0,true) |
3166 sCirc = AddVisualGear(0,0,vgtCircle,0,true) |
3176 SetVisualGearValues(sCirc, 0, 0, 100, 255, 1, 10, 0, 40, 3, 0xffba00ff) |
3167 SetVisualGearValues(sCirc, 0, 0, 100, 255, 1, 10, 0, 40, 3, 0xffba00ff) |
3177 |
3168 |
3178 --[[ This is a small hack to disable Hedgewars' girder placement since we do it on our own; |
3169 --[[ This is a small hack to disable Hedgewars' girder placement since we do it on our own; |