Jump to content

Photo

Contagion GUI for BG2EE v2+

GUI BG2EE 2017

2 replies to this topic

#1 frostysh

frostysh

    THE TRUTH SEEKER

  • Members
  • 227 posts
  • Gender:Not Telling
  • Location:Afghanistan

Posted 03 February 2017 - 06:28 AM

Hi everyone.

I am making a new version of Contagion GUI mod, for v2+ BG2EE, because I want a comfort playtrough for myself :p, my alpha is almost ready, the only dialog box is left, but I need some help there.
K4thos, provided me with this very helpful link.
https://forums.beamd...ow-to-use-it/p1,
But I have some issues with internet connection , so I cannot download such large data size with images like in the link above. I will read it in the future.
For now I have done images and changed some fonts

Baldur.lua (where saves) - SetPrivateProfileString('Program Options','UI Edit Mode','1') - UI.menu - ovverride . Nearinfinity - BGEE.lua , export to override.

BGEE.lua - "styles = ", right above you will see "fontcolors = ()" , added this string
fontcolors['Y'] = '21030401' -- Contagion Gui mod Black

in the end of "styles = " column, before closing parenthesis, added this
CGuiMod = 
	{
		color = 'Y',
		font = 'NORMAL',
		point = 12,
		valign = 'top',
		halign = 'left',
	useFontZoom = 1,
	}

And the I have added in the UI.menu stuff, this text style replaced standard one in the field where I need that, the respective fields I obtain by using and in the game.
Something like that:

Number of line - 640, this is class table in Charrec menu.

text
	{
		enabled		"showClassInfo"
		area		50 182 342 412
		text		lua "getClassString()"
		text style  'CGuiMod'
		scrollbar	'GUISCRC'
	}

And I have an issue - the image of the hero, is look little don't fitting into boards, after modifying GUIREC2.MOS through NearInfinity.

for_forum.jpg

And I see 4 numbers for the field "area" but I though on the 2D plane is enough 2 Axis :/ . So what is meaning of this four numbers? Is this a coordinates? How I can adjust them, to fit in hero image?
Obviously I need to understand how this coordinates works, before I will modd thos crazy dialogbox background image, and font colors...
Any other hit, advises, etc?

Thanx.
"The monstrous evils of the twentieth century have shown us that the greediest money grubbers are gentle doves compared with money-hating wolves like Lenin, Stalin, and Hitler, who in less than three decades killed or maimed nearly a hundred million men, women, and children and brought untold suffering to a large portion of mankind."
- Eric Hoffer

"Nationalism is an infantile disease. It is the measles of mankind."
- Albert Einstein

"Religion is an insult to human dignity. With or without it you would have good people doing good things and evil people doing evil things. But for good people to do evil things, that takes religion."
- Steven Weinberg

#2 Avenger

Avenger
  • Modders
  • 3800 posts
  • Gender:Male
  • Location:Hungary

Posted 04 February 2017 - 11:26 PM

As far as i know, the first 2 numbers are the coordinates relative to the window (top left), the second 2 numbers are the size of the rectangle. 


Edited by Avenger, 04 February 2017 - 11:28 PM.


#3 frostysh

frostysh

    THE TRUTH SEEKER

  • Members
  • 227 posts
  • Gender:Not Telling
  • Location:Afghanistan

Posted 04 February 2017 - 11:50 PM

Thanx but I have already fixed those stuff by myself. In game exist somekind of crazy coord. system. The upper left corner is seems to be it's origin. But I have saw negative values, and I do not know what the hell it was.
Anyway, indeed. first two number is coordinates of the LEFT upper corner of the any stuff HORIZONTAL - VERTICAL, next two numbers is the area of thos stuff WIDTH - HEIGHT. But Have not realized yet, well - when you increasing that are, to which side the values adding, I mean if you are increasing HEIGHT the stuff increasing from up or from bottom, or from both, simultaneously, but in this case, you need to divide, I mean when you are increasing something by 1, you need to add 0,5 to up and down sides.

--------------------------------------------------------------------------------

Besides to modify dialog box background, it seems to need modify BOX5.PVRZ or something, there is a few *.PVRZ with such names. I will try, I hope it will work.

--------------------------------------------------------------------------------

I have the any "text style" fields that I have found in the "Dialog Box" stuff, in UI.menu - but without much of success, anyway I have managed to change the background.

for_forum_BG2_EE_Dialog_Box_mod.jpg

Edited by frostysh, 05 February 2017 - 09:06 AM.

"The monstrous evils of the twentieth century have shown us that the greediest money grubbers are gentle doves compared with money-hating wolves like Lenin, Stalin, and Hitler, who in less than three decades killed or maimed nearly a hundred million men, women, and children and brought untold suffering to a large portion of mankind."
- Eric Hoffer

"Nationalism is an infantile disease. It is the measles of mankind."
- Albert Einstein

"Religion is an insult to human dignity. With or without it you would have good people doing good things and evil people doing evil things. But for good people to do evil things, that takes religion."
- Steven Weinberg



Reply to this topic



  



Also tagged with one or more of these keywords: GUI, BG2EE, 2017

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users