Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds

Members Online

»
0 Active | 11 Guests
Online:

LATEST FORUM THREADS

»
warfare
CoD4 Map + Mod Releases
Voting menu on maps
CoD+UO General
Hauling 911
CoDBO3 General

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty 4
Category: CoD4 SP Mapping
CoD 4 mapping and level design for single player.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername, novemberdobby
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: Loading line color?
SPi
General Member
Since: Jul 4, 2012
Posts: 531
Last: Nov 9, 2019
[view latest posts]
Level 6
Category: CoD4 SP Mapping
Posted: Saturday, Sep. 7, 2013 12:03 pm
attachment: image(218.7Kb)
hey all,

As you may have noticed, in the sniperescape.ff or "One Shot One Kill" Mission the loading bar is colored dark orange or something.



Well as i know the defult color is white.
I also checked in the sniperescape.gsc to see for any changes.
but i did not find anything so far. Maybe i did not searched enough.

Does anyone know how to change the loading bar color?
Share |
Josh.S
General Member
Since: May 27, 2012
Posts: 86
Last: Sep 16, 2014
[view latest posts]
Level 3
Category: CoD4 SP Mapping
Posted: Sunday, Sep. 8, 2013 01:44 am
You have to edit the UI.
Go to raw/ui and open briefing
It looks like this :
Code:

#include "ui/menudef.h"

{
	menuDef 
	{
		name			"briefing"
		style			WINDOW_STYLE_FILLED
		fullScreen		1
		rect			0 0 640 480
		focusColor		COLOR_FOCUSED
		backcolor		1 1 1 1
		visible			1

		// background
		itemDef 
		{
			style			WINDOW_STYLE_FILLED
			rect			FULLSCREEN_WIDE
			backcolor		1 1 1 1
			visible			1
			background		cinematic
			ownerdraw		UI_CINEMATIC
			decoration
		}

		itemDef
		{
			type			ITEM_TYPE_TEXT
			#ifdef PC

				rect			-250 388 500 0 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_TOP
			#else
				rect			-225 352 450 0 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_TOP
			#endif			

			textcinematicsubtitle
			textfont		UI_FONT_DEFAULT
			textstyle		ITEM_TEXTSTYLE_SHADOWED
			textscale		0.38
			textalign		ITEM_ALIGN_TOP_CENTER
			visible			1
			decoration
			autowrapped
		}		
		/*
		itemDef
		{
			type			ITEM_TYPE_TEXT
			origin			ORIGIN_TITLE
			forecolor		COLOR_TITLE
			text			"@MENU_LOADING_DOTS"
			textfont		UI_FONT_NORMAL
			textscale		TEXTSIZE_TITLE
			textstyle		ITEM_TEXTSTYLE_SHADOWED
			textalign		ITEM_ALIGN_TOP_LEFT
			visible			1
			decoration
		}
		*/
		itemDef 
		{
			name			"profile"
			rect			40 40 560 400
			align			HUD_HORIZONTAL
			ownerdraw		UI_LOADPROFILING
			visible			1
			decoration
		}

		#include "ui/safearea.menu"

		// load progress bar background
		itemDef 
		{
			style			WINDOW_STYLE_FILLED
			rect			192 430 256 2
	 		backcolor		0.2 0.2 0.2 1
			visible			1
			decoration
		}
		
		// load progress bar
		itemDef 
		{
			name			"loadbar"
			style			WINDOW_STYLE_LOADBAR
			rect			192 430 256 2
			forecolor		0.5 0.325 0.175 0.75
	 		background		"white"
			visible			when( dvarstring( mapname ) == "sniperescape" );
			decoration
		}
		itemDef 
		{
			name			"loadbar"
			style			WINDOW_STYLE_LOADBAR
			rect			192 430 256 2
	 		background		"white"
			visible			when( dvarstring( mapname ) != "sniperescape" );
			decoration
		}
	}
}


Use the forecolor to change the color of the loading bar.

edited on Sep. 7, 2013 06:45 pm by Josh-Xenu
Share |
SPi
General Member
Since: Jul 4, 2012
Posts: 531
Last: Nov 9, 2019
[view latest posts]
Level 6
Category: CoD4 SP Mapping
Posted: Sunday, Sep. 8, 2013 01:52 am
Wow, Thanks.
I'm really impressed.

Just a question, there are 4 numbers in forecolor right?
shouldnt they be RGB?
forecolor 0.5 0.325 0.175 0.75

edited on Sep. 7, 2013 06:54 pm by SPi

edited on Sep. 7, 2013 07:03 pm by SPi
Share |
Josh.S
General Member
Since: May 27, 2012
Posts: 86
Last: Sep 16, 2014
[view latest posts]
Level 3
Category: CoD4 SP Mapping
Posted: Tuesday, Sep. 10, 2013 02:36 pm
The last one must be the alpha.
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty 4 : CoD4 SP Mapping

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»