share/hedgewars/Data/Scripts/Multiplayer/HedgeEditor.lua
changeset 12032 7339122bad35
parent 12031 0b0578c25470
child 12033 cbd9c1d41e06
equal deleted inserted replaced
12031:0b0578c25470 12032:7339122bad35
  2843 	end
  2843 	end
  2844 
  2844 
  2845 
  2845 
  2846 	if helpDisabled == true then
  2846 	if helpDisabled == true then
  2847 		HideMission()
  2847 		HideMission()
       
  2848 		hedgeEditorMissionPanelShown = false
  2848 	end
  2849 	end
  2849 
  2850 
  2850 end
  2851 end
  2851 
  2852 
  2852 function onSetWeapon(ammoType)
  2853 function onSetWeapon(ammoType)
  3180 		else
  3181 		else
  3181 			SetEditingWeps(100)
  3182 			SetEditingWeps(100)
  3182 			AddCaption(loc("The editor weapons and tools have been added!"))
  3183 			AddCaption(loc("The editor weapons and tools have been added!"))
  3183 		end
  3184 		end
  3184 	elseif (preciseOn == true) and (s == 1) then
  3185 	elseif (preciseOn == true) and (s == 1) then
  3185 		if (GetCurAmmoType() == amGirder) or  (GetCurAmmoType() == amRubber) or  (GetCurAmmoType() == amAirAttack) then
  3186 		helpDisabled = not(helpDisabled)
  3186 			helpDisabled = not(helpDisabled)
  3187 		if helpDisabled then
  3187 			if helpDisabled then
  3188 			AddCaption(loc("Help Disabled"),0xffba00ff,capgrpVolume)
  3188 				AddCaption(loc("Help Disabled"),0xffba00ff,capgrpVolume)
  3189 		else
  3189 			else
  3190 			AddCaption(loc("Help Enabled"),0xffba00ff,capgrpVolume)
  3190 				AddCaption(loc("Help Enabled"),0xffba00ff,capgrpVolume)
  3191 		end
  3191 			end
  3192 		updateHelp()
  3192 			updateHelp()
       
  3193 		end
       
  3194 	elseif (preciseOn == true) and (s == 3) then
  3193 	elseif (preciseOn == true) and (s == 3) then
  3195 		if (GetCurAmmoType() == amGirder) or  (GetCurAmmoType() == amRubber) or  (GetCurAmmoType() == amAirAttack) then
  3194 		showGearTags = not(showGearTags)
  3196 			showGearTags = not(showGearTags)
  3195 		if showGearTags then
  3197 			if showGearTags then
  3196 			AddCaption(loc("Gear information shown"),0xffba00ff,capgrpVolume)
  3198 				AddCaption(loc("Gear information shown"),0xffba00ff,capgrpVolume)
  3197 		else
  3199 			else
  3198 			AddCaption(loc("Gear information hidden"),0xffba00ff,capgrpVolume)
  3200 				AddCaption(loc("Gear information hidden"),0xffba00ff,capgrpVolume)
       
  3201 			end
       
  3202 		end
  3199 		end
  3203 
  3200 
  3204 	elseif (cat[cIndex] == loc("Sprite Placement Mode")) or (cat[cIndex] == loc("Girder Placement Mode")) or (cat[cIndex] == loc("Rubber Placement Mode")) or (cat[cIndex] == loc("Sprite Modification Mode")) then
  3201 	elseif (cat[cIndex] == loc("Sprite Placement Mode")) or (cat[cIndex] == loc("Girder Placement Mode")) or (cat[cIndex] == loc("Rubber Placement Mode")) or (cat[cIndex] == loc("Sprite Modification Mode")) then
  3205 
  3202 
  3206 		if (cat[cIndex] == loc("Rubber Placement Mode")) then
  3203 		if (cat[cIndex] == loc("Rubber Placement Mode")) then
  3440 		loc("Manual: https://hedgewars.org/hedgeeditor") .. "|" ..
  3437 		loc("Manual: https://hedgewars.org/hedgeeditor") .. "|" ..
  3441 		" " .. "|" ..
  3438 		" " .. "|" ..
  3442 		loc("Place Girder: Girder") .. "|" ..
  3439 		loc("Place Girder: Girder") .. "|" ..
  3443 		loc("Place Rubber: Rubber") .. "|" ..
  3440 		loc("Place Rubber: Rubber") .. "|" ..
  3444 		loc("Place Gears (and more): Air Attack") .. "|" ..
  3441 		loc("Place Gears (and more): Air Attack") .. "|" ..
  3445 		loc("Change Selection: [Up], [Down], [Left], [Right]") .. "|" ..
  3442 		loc("Toggle Help: [Precise]+[1]") .. "|" ..
  3446 		loc("Toggle Help: [Precise]+[1] (While a tool is selected)") .. "|" ..
  3443 		loc("Toggle Gear Information: [Precise]+[3]") .. "|" ..
  3447 		" " .. "|" ..
  3444 		" " .. "|" ..
  3448 		loc("COMMANDS: (Use while no weapon is selected)") .. "|" ..
  3445 		loc("Editing Commands: (Use while no weapon is selected)") .. "|" ..
  3449 		loc("Save Level: [Precise]+[4]") .. "|" ..
  3446 		loc("Save Level: [Precise]+[4]") .. "|" ..
  3450 		loc("Toggle Editing Weapons and Tools: [Precise]+[2]")
  3447 		loc("Toggle Editing Weapons and Tools: [Precise]+[2]")
  3451 		, 4, 5000
  3448 		, 4, 5000
  3452 		)
  3449 		)
  3453 	hedgeEditorMissionPanelShown = true
  3450 	hedgeEditorMissionPanelShown = true