Reduce hints' grey boxes size

The place to discuss scripting and game modifications for X Rebirth.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

User avatar
TheRealBix
Posts: 400
Joined: Thu, 2. Jul 09, 14:34
x4

Reduce hints' grey boxes size

Post by TheRealBix »

http://tinyurl.com/gooa5cs

I there a way to reduce the size of the hints boxes ?
I konw we can change the position (at least to a certain degree, setting more than x=82 will not display anything) but I can't find anything related to size.

parameters.xml only contains this related to hints

Code: Select all

  <hintpositions>
    <!-- Mission-Countdown-timer is hardcoded to appear at 0,0 -->
    <!-- 0: main hint location (top-center) -->
    <position x="41" y="18" />
    <!-- 1: Middle of screen (targeting) -->
    <position x="41" y="55" />
    <!-- 2: Near Weapon monitor -->
    <position x="15" y="55" />
    <!-- 3: Near event-monitor -->
    <position x="70" y="60" />
    <!-- 4: Near speedbar -->
    <position x="40" y="78" />
    <!-- 5: Guidance bar -->
    <position x="46" y="58" />
    <!-- 6: Top-middle -->
    <position x="40" y="28" />
    <!-- 7: Top-right -->
    <position x="82" y="2" />
    <!-- 8: Above conversation options -->
    <position x="40" y="65" />
    <!-- 9: Bottom-middle / Trade menu -->
    <position x="60" y="18" />
    <!-- 10: Left center / Status menu -->
    <position x="10" y="45" />
    <!-- 11: Top right, below HUD event monitor -->
    <position x="82" y="33" />
    <!-- 12: Left-top, drone investigated-icon -->
    <position x="10" y="6" />
    <!-- 13: Right-top, drone attacked-icon -->
    <position x="70" y="6" />
    <!-- 14: Fight cockpit speedbar -->
    <position x="52" y="17" />
    <!-- 15: Builder cockpit speedbar -->
    <position x="34" y="88" />
    <!-- 16: Trade cockpit speedbar -->
    <position x="28" y="84" />
    <!-- 17: Fight cockpit shieldbar -->
    <position x="75" y="17" />
    <!-- 18: Builder cockpit shieldbar -->
    <position x="5" y="76" />
    <!-- 19: Trade cockpit shieldbar -->
    <position x="42" y="81" />
UniTrader
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 14571
Joined: Sun, 20. Nov 05, 22:45
x4

Post by UniTrader »

hint boxes themselves are done in lua, i think in the fullscreen environment. no idea how to change them via ext_01.cat/dat or plain files, but using the subst_01.cat/dat should work.
if not stated otherwise everything i post is licensed under WTFPL

Ich mache keine S&M-Auftragsarbeiten, aber wenn es fragen gibt wie man etwas umsetzen kann helfe ich gerne weiter ;)

I wont do Script&Mod Request work, but if there are questions how to do something i will GLaDly help ;)
User avatar
TheRealBix
Posts: 400
Joined: Thu, 2. Jul 09, 14:34
x4

Post by TheRealBix »

Ah yes you must be right, just found this in ui\core\Lua\helptext.lua

Code: Select all

	local hintcontent
	if menu.queue[1] then
		-- hint found
		local hintstring = CreateFontString(menu.queue[1].text, "left", 255, 255, 255, 100, config.font, menu.scaleFont(config.font, config.fontsize), true, menu.scaleX(config.textoffsetx), menu.scaleY(config.textoffsety), 0, menu.scaleX(config.width - config.tableoffsetx) - menu.scaleX(config.textoffsetx))
		hintcontent = { [1] = { color = config.backgroundColor, selectable = false, cols = { [1] = { colspan = 1, content = hintstring } } } }
		if (not menu.queue[1].silent) and (not menu.duration) then
			PlaySound("notification_hint")
		end
		menu.duration = menu.duration or (realtime + menu.queue[1].duration)
	end
But I really don't know what to do with this xD
I was also searching for a way to increase the top left monitor size or swap it with the Yisha's monitor, the top left menu is still too small even with the setting. I think it must be with lua files too, but I must give up because of the lua complexity for me.

Anyway, thanks for the answer :)
UniTrader
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 14571
Joined: Sun, 20. Nov 05, 22:45
x4

Post by UniTrader »

regarding the menu: i think its in the underlined parts:

local hintstring = CreateFontString(menu.queue[1].text, "left", 255, 255, 255, 100, config.font, menu.scaleFont(config.font, config.fontsize), true, menu.scaleX(config.textoffsetx), menu.scaleY(config.textoffsety), 0, menu.scaleX(config.width - config.tableoffsetx) - menu.scaleX(config.textoffsetx))


regarding the eventmonitor: if its the one i think i solved this a while ago for my personal Debug Output mod (Infos outputted via the Eventmonitor were too small to read for me)
i have no intention of really publishing this, but feel free to use the part with the bigger monitor for yourself ^^ Archive contains the cat/dat you hve to put in the related mod.
https://www.dropbox.com/s/10q2lhd5gq8cg ... or.7z?dl=0
i have only changed 2 lines there (73 and 76) so it should be easy to update if needed..
if not stated otherwise everything i post is licensed under WTFPL

Ich mache keine S&M-Auftragsarbeiten, aber wenn es fragen gibt wie man etwas umsetzen kann helfe ich gerne weiter ;)

I wont do Script&Mod Request work, but if there are questions how to do something i will GLaDly help ;)
User avatar
TheRealBix
Posts: 400
Joined: Thu, 2. Jul 09, 14:34
x4

Post by TheRealBix »

Your .cat doesn't work here but I think it's because it's based on an older version.
Anyway I've seen the modified lines and it will help me to achieve what I'm looking for, so thanks a lot !

Return to “X Rebirth - Scripts and Modding”