Jump to content
  • 1

Equipped item red dot


reaksiyon

Question

6 answers to this question

Recommended Posts

  • 1

Ok so I did some testing.

 <Bounds>0,0,2,2</Bounds>

This puts it in the top left corner, now i know im editing the correct thing.

 

Changing render color

<RenderColor>255,255,255,255</RenderColor>

0185d30a377d26b6fe54cea4b04d087c.png

 

as you can see, now they are white and in the top left corner.

 

Now i made a 16x16px icon with an E

9ed74cd005b27b704929cb5fa47903ac.png

 

Next is to tell the xml file how to use our image.

See my inventory item equipped icon section below.

 <InventoryItemEquippedIcon>
                          <Bounds>0,0,16,16</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>False</Hidden>
                          <RestrictToParent>False</RestrictToParent>
                          <MouseInputEnabled>True</MouseInputEnabled>
                          <HideToolTip>False</HideToolTip>
		          <Texture>itemequiped.png</Texture>
		          <TextureSourceRect>0,0,0,0</TextureSourceRect>
</InventoryItemEquippedIcon>

 

And final resutl:

bad0f874709923ccd31a1156f57db4c6.png

Link to comment
Share on other sites

  • 1

7c93087d71b33a7f352755b78ba85fb7.png

 

This is in the GUI folder, under InGame.xml, open it with a text editor, i prefer notepad++.

CTRL+F and type InventoryItemEquippedIcon

Render color is the ARBG (alpha, red, blue, green) color (in this case red)

To assign an icon i believe you can add a <Texture>YourImage.png</Texture> and <TextureSourceRect>0,0,0,0</TextureSourceRec>  (thats padding coord, x and y, then width height)

I have not tested the icon as a picture but in threory it should work?

 

Link to comment
Share on other sites

  • 1
3 hours ago, defaultx said:

7c93087d71b33a7f352755b78ba85fb7.png

 

This is in the GUI folder, under InGame.xml, open it with a text editor, i prefer notepad++.

CTRL+F and type InventoryItemEquippedIcon

Render color is the ARBG (alpha, red, blue, green) color (in this case red)

To assign an icon i believe you can add a <Texture>YourImage.png</Texture> and <TextureSourceRect>0,0,0,0</TextureSourceRec>  (thats padding coord, x and y, then width height)

I have not tested the icon as a picture but in threory it should work?

 

 

 

 

ARBG is not working. Only red color is showing.

i changed to 255,0,255,0 and that dot is gone.

 

i cant see textures too :/

Link to comment
Share on other sites

×
×
  • Create New...