Jump to content
Sign in to follow this  
roguetrooper

A dialog that the player can not influence?

Recommended Posts

I want a coloured box on the screen that the player can not remove and that has no impact on the player's controls.

Usually, when you create a dialog, it can be removed by hitting Escape and the dialog disables other input (moving, inventory, action menu).

This dialog from my description.ext is what I want; a box of desired colour and position:

#define FontM "Zeppelin32"
#define CT_STATIC  0
#define ST_LEFT 0x00
#define ST_CENTER  0x02
#define CT_BUTTON  1

class Dialog1
{
idd = 100;
type = CT_STATIC;
style = ST_CENTER;
movingEnable = false;
enableSimulation = true;
controlsBackground[] = { };
colorBackground[] = { 1, 1, 1, 1 };
objects[] = { };
controls[] = { Box1 };

class Box1 
{ 
	idc    = -1;
	moving = 0;
	type   = CT_STATIC;
	style  = ST_LEFT;
	text   = "";
	font   = FontM; 
	sizeEx = 0.03; 
	colorBackground[] = { 0, 0, 0, 0.5 }; 
	colorText[]       = { 1, 1, 1, 1.0 }; 
	x = -0.186; 
	y = 0.677;
	w = 0.693; 
	h = 0.24;
};
};

The bad thing is, that it can be removed by the player and even worse, it disables player input until it has been closed (Escape or closeDialog).

So what do I have to do to create boxes on the screen of certain sizes, colours and positions that cannot be removed by the player and that have no effect on the player? (Should be MP compatible) (found nothing at http://community.bistudio.com/wiki/Dialog_Control)

Edited by RogueTrooper

Share this post


Link to post
Share on other sites

Hi mate...don't know too much about dialogs but in that code true and false aren't defined so it probably won't work.

Use 0 and 1 for movingEnable and enableSimulation

Or define true and false with:-

#define false 0
#define true 1

Share this post


Link to post
Share on other sites

It's not a question of the dialog working or not, since it does work (copy & pasted from actual working usage).

The code above is just meant to give a base of what might be changed so that it works in the way I described it.

Share this post


Link to post
Share on other sites

Sounds to me you are looking for a display rather than a dialog. You may be able to find what you're looking for in this thread, post #6.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×