Jump to content
  • 0

I can increase the size of the textbox?


Minamoto Yoshitsune

Question

13 answers to this question

Recommended Posts

  • 0

Oh lord.... umm

 

File:

Client/Resources/InGame.xml

 

Find:

EventDialogWindow_Max1Response

EventDialogWindow_Max2Responses

EventDialogWindow_Max3Responses

EventDialogWindow_Max4Responses

 

They each have components called:

EventDialogArea

 

The EventDialogArea(s) have parameters called bounds in the format:

<Bounds>X, Y, W, H</Bounds>.

 

The Y value is how far from the top of the window the dialog area is at.  The H value is the height of the area. 

 

You should be able to lower the Y value to make the chat area move upward, and increase the H to make it taller.

 

@SkyZero please confirm if this works so I can mark this topic as solved.

Link to comment
Share on other sites

  • 0

@jcsnider

 

I tried altering all of these (Max1Response to Max4Response) but they had no effect to the dialogue box heights.

 

 

<EventDialogArea>
                    <Bounds>112,14,402,80</Bounds>

 

 

 

changed to <EventDialogArea>
                    <Bounds>112,0,402,150</Bounds>

 

 

would the  inner panel need altering also?

 

<InnerPanel>
                        <Bounds>0,0,387,900</Bounds>

Link to comment
Share on other sites

  • 0

Lets see if i can help.

In the GUI folder, open InGame.xml (i suggest notepad++)

CTRL+F and search for <EventDialogWindow_Max1Response>

You should get something like this:

		<EventDialogWindow_Max1Response>
			<Bounds>247,210,530,162</Bounds>
			<Padding>16,8,9,11</Padding>
			<AlignmentEdgeDistances>0,0,0,0</AlignmentEdgeDistances>
			<Margin>0,0,0,0</Margin>
			<RenderColor>255,255,255,255</RenderColor>
			<Alignments>Center</Alignments>
			<DrawBackground>True</DrawBackground>
			<MinimumSize>1,1</MinimumSize>
			<MaximumSize>4096,4096</MaximumSize>
			<Disabled>False</Disabled>
			<Hidden>False</Hidden>
			<RestrictToParent>False</RestrictToParent>
			<MouseInputEnabled>True</MouseInputEnabled>
			<HideToolTip>False</HideToolTip>
			<Texture>eventdefault.png</Texture>
			<TextureSourceRect>0,0,0,0</TextureSourceRect>

Looking at this we can see its calling the eventdefault.png as its texture,  and we know by looking at the GUI folder, the eventdefault.png file is 530x162 px, this means the <bounds> tag is setup like this, x, y, width, height. So to start making this bigger first we want a bigger image. In the GUI folder you should also see other event responses of bigger sizes, for this im going to use event2responses as a template, and that file is 530x208 px.

 

So change the <Texture>eventdefault.png</Texture> to <Texture>event2responses.png</Texture>

Then we need to set the new bounds. Im going to leave the x and y the same just to test it first and for now im just going to change the width and height.

So change the <Bounds>247,210,530,162</Bounds> to <Bounds>247,210,530, 208</Bounds> 

 

Now looking down a bit more we see this has children.

  • <EventFacePanel>                      |==| This Is where the face image will be shown and its settings, since we are setting the default x and y im going to leave this the same
  • <EventDialogArea>                     |==| This is the part where the text is, this is the part we want to make taller
  • <EventDialogAreaNoFace>       |==| This is dialog as well but with no face image so the text box is wider, we will need to make this taller too
  • <Response1Button>                  |==| This is the button to click ok we will probably need to move this guys y coord down some

Under <EventDialogArea> lets edit a few things.

	<EventDialogArea>
					<Bounds>112,14,402,80</Bounds>
					<Padding>0,0,0,0</Padding>
					<AlignmentEdgeDistances>0,0,0,0</AlignmentEdgeDistances>
					<Margin>0,0,0,0</Margin>
					<RenderColor>255,255,255,255</RenderColor>
					<Alignments />
					<DrawBackground>True</DrawBackground>
					<MinimumSize>1,1</MinimumSize>
					<MaximumSize>4096,4096</MaximumSize>
					<Disabled>False</Disabled>
					<Hidden>True</Hidden>
					<RestrictToParent>False</RestrictToParent>
					<MouseInputEnabled>False</MouseInputEnabled>
					<HideToolTip>False</HideToolTip>
					<CanScrollH>False</CanScrollH>
					<CanScrollV>True</CanScrollV>
					<AutoHideBars>False</AutoHideBars>

All we really need to change in here is the height, so find <Bounds>112,14,402,80</Bounds>

Since our background increased 48px lets just account for that and add 48 to 80 which gives us the setting <Bounds>112,14,402,128</Bounds>

 

Repeat this step for <EventDialogAreaNoFace>

Change <Bounds>22,14,488,80</Bounds> to <Bounds>22,14,488,128</Bounds>

 

THIS SHOULD WORK IN THEORY I HAVE NOT TESTED IT.

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...