Doom Wars' Launch Party

Doom Wars is a RTS set in Doom universe that pits the Marines of the UAC against the Invaders from Hell.
User avatar
Andrettin
Posts: 433
Joined: Sun Jun 30, 2013 9:58 pm
Location: Vienna, Austria
Contact:

Re: Doom Wars' Launch Party

Post by Andrettin »

Congratulations cybermind!
User avatar
Kyran
Posts: 499
Joined: Sat Dec 31, 2011 5:19 pm
Location: Australia
Contact:

Re: Doom Wars' Launch Party

Post by Kyran »

Which one is Dink? You all know which one I am.
04:27 jim4 why haven't you added wc1 support? this project sucks. i'm only going to use freecraft
05:06 jim4 finished wc1 support yet? i've been waiting for 6 years
05:10 jim4 new things scare me
User avatar
cybermind
Posts: 110
Joined: Sat Dec 31, 2011 11:43 pm

Re: Doom Wars' Launch Party

Post by cybermind »

All unit voice actors are listed in credits
User avatar
DinkyDyeAussie
Posts: 260
Joined: Fri Feb 10, 2012 10:39 am
Location: Australia

Re: Doom Wars' Launch Party

Post by DinkyDyeAussie »

Hey Cyber I noticed this code in the scripts:

Code: Select all

  
 function AddUserButton(x, y, style, text, callback)
	local b = CUIButton:new()
	b.X = x
	b.Y = y
	b.Text = text
	b.Style = style
	b:SetCallback(callback)
	bb = CUIUserButton:new()
	bb.Button = b
	UI.UserButtons:push_back(bb)
 end
and it's use here, in uac.lua:

Code: Select all

AddUserButton(3, 102, FindButtonStyle("uac-button-pause"), "", 
	function()
		if (IsNetworkGame() == false) then
			if (GetGamePaused()) then
				SetGamePaused(false)
				AddMessage(_("Game resumed"))
			else
				SetGamePaused(true)
				AddMessage(_("Game paused"))
			end
		end
	end)
Just wondering. Can we use this kind of code to get the in-game menu buttons to behave like the "Menu (F10)" does? Just asking :)
User avatar
cybermind
Posts: 110
Joined: Sat Dec 31, 2011 11:43 pm

Re: Doom Wars' Launch Party

Post by cybermind »

Yes, that's why I created them. See the quick buttons on the left side of the screen? They are using this code :)
User avatar
DinkyDyeAussie
Posts: 260
Joined: Fri Feb 10, 2012 10:39 am
Location: Australia

Re: Doom Wars' Launch Party

Post by DinkyDyeAussie »

Tried it out with this code in "game.lua" to see if I could make the Save button work like the menu button:

Code: Select all

AddUserButton(160, 140, FindButtonStyle("gm-half-orc"), "Save (~<F11~>)", function() RunSaveMenu() end)
The "160" and "140" are just for this test. I ended up getting this:
screen07.png
screen07.png (271.78 KiB) Viewed 12804 times
The save button appears :), but is not able to be clicked :(, but when I get rid of the game menu, the save button stays on the screen, and is THEN usable...
screen08.png
screen08.png (210.83 KiB) Viewed 12804 times
screen10.png
screen10.png (210.76 KiB) Viewed 12804 times
screen11.png
screen11.png (264.66 KiB) Viewed 12804 times
Somehow I've got to make it so the button is attached to the panel, and not the main interface...Should I move the code to the respective orc and human "ui.lua" files instead? that seems to be where all the other buttons that behave this way are kept, code wise.
User avatar
Kyran
Posts: 499
Joined: Sat Dec 31, 2011 5:19 pm
Location: Australia
Contact:

Re: Doom Wars' Launch Party

Post by Kyran »

04:27 jim4 why haven't you added wc1 support? this project sucks. i'm only going to use freecraft
05:06 jim4 finished wc1 support yet? i've been waiting for 6 years
05:10 jim4 new things scare me
User avatar
DinkyDyeAussie
Posts: 260
Joined: Fri Feb 10, 2012 10:39 am
Location: Australia

Re: Doom Wars' Launch Party

Post by DinkyDyeAussie »

not really helping, plus I can't see the video man. Apparently it's private...
User avatar
cybermind
Posts: 110
Joined: Sat Dec 31, 2011 11:43 pm

Re: Doom Wars' Launch Party

Post by cybermind »

Haha, was too funny to watch this video, though all Kyran's comments have been muted because of music :D Nightmare AI's of Doom Wars are really tough, I'm eager to watch a video of beating at least 1 Nightmare AI.
User avatar
Kyran
Posts: 499
Joined: Sat Dec 31, 2011 5:19 pm
Location: Australia
Contact:

Re: Doom Wars' Launch Party

Post by Kyran »

04:27 jim4 why haven't you added wc1 support? this project sucks. i'm only going to use freecraft
05:06 jim4 finished wc1 support yet? i've been waiting for 6 years
05:10 jim4 new things scare me
Post Reply