Skip to content

7days2mod/UIAtlasItemIcons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UIAtlasItemIcons

UIAtlas icons converted to ItemIcons

To use the icons add the UIAtlasItemIcons folder to your games Mods folder (or add the contents of the ItemIcons folder to your own mod's ItemIcons)

v1.0.0 contains the following icons (all the vanilla buff icons)

  • ui_game_symbol_beer
  • ui_game_symbol_brokenbone
  • ui_game_symbol_campfire
  • ui_game_symbol_coffee
  • ui_game_symbol_cold
  • ui_game_symbol_critical
  • ui_game_symbol_death
  • ui_game_symbol_drunk
  • ui_game_symbol_dysentery
  • ui_game_symbol_fire
  • ui_game_symbol_food_poisoning
  • ui_game_symbol_hot
  • ui_game_symbol_hunger
  • ui_game_symbol_infection
  • ui_game_symbol_map_bed
  • ui_game_symbol_medical
  • ui_game_symbol_natural_healing
  • ui_game_symbol_oxygen
  • ui_game_symbol_pills
  • ui_game_symbol_radiation
  • ui_game_symbol_run
  • ui_game_symbol_skull
  • ui_game_symbol_smell
  • ui_game_symbol_splint
  • ui_game_symbol_stunned
  • ui_game_symbol_tea
  • ui_game_symbol_thirst
  • ui_game_symbol_wet

v1.1.0 adds most of the additional icons available

  • menu_empty
  • menu_empty3px
  • server_cheat
  • server_favorite
  • server_feral
  • server_friends
  • server_history
  • server_lan
  • server_locked
  • server_modded
  • server_peer
  • server_refresh
  • server_stock
  • server_z_always_run
  • server_z_default
  • server_z_never_run
  • ui_game_filled_circle
  • ui_game_header_fill
  • ui_game_panel_header
  • ui_game_select_row
  • ui_game_symbol_add
  • ui_game_symbol_airdrop
  • ui_game_symbol_all_blocks
  • ui_game_symbol_allies
  • ui_game_symbol_archery
  • ui_game_symbol_armor_iron
  • ui_game_symbol_armor_leather
  • ui_game_symbol_arrow_left
  • ui_game_symbol_arrow_max
  • ui_game_symbol_arrow_right
  • ui_game_symbol_assemble
  • ui_game_symbol_backpack
  • ui_game_symbol_battery
  • ui_game_symbol_beer
  • ui_game_symbol_block_damage
  • ui_game_symbol_block_repair
  • ui_game_symbol_block_upgrade
  • ui_game_symbol_book
  • ui_game_symbol_brokenbone
  • ui_game_symbol_campfire
  • ui_game_symbol_cement
  • ui_game_symbol_chair
  • ui_game_symbol_character
  • ui_game_symbol_check
  • ui_game_symbol_chemistry
  • ui_game_symbol_climb
  • ui_game_symbol_clock
  • ui_game_symbol_club
  • ui_game_symbol_coffee
  • ui_game_symbol_coin
  • ui_game_symbol_cold
  • ui_game_symbol_compass
  • ui_game_symbol_computer
  • ui_game_symbol_cookware
  • ui_game_symbol_critical
  • ui_game_symbol_death
  • ui_game_symbol_defense
  • ui_game_symbol_diamond
  • ui_game_symbol_door
  • ui_game_symbol_drive
  • ui_game_symbol_drop
  • ui_game_symbol_drunk
  • ui_game_symbol_dysentery
  • ui_game_symbol_fire
  • ui_game_symbol_food_poisoning
  • ui_game_symbol_forge
  • ui_game_symbol_fork
  • ui_game_symbol_gas
  • ui_game_symbol_gunsmithing
  • ui_game_symbol_hammer
  • ui_game_symbol_hand
  • ui_game_symbol_horn
  • ui_game_symbol_hot
  • ui_game_symbol_hunger
  • ui_game_symbol_infection
  • ui_game_symbol_invite
  • ui_game_symbol_keypad
  • ui_game_symbol_knife
  • ui_game_symbol_light_armor
  • ui_game_symbol_lightbulb
  • ui_game_symbol_lock
  • ui_game_symbol_loot_sack
  • ui_game_symbol_map_bed
  • ui_game_symbol_map_cabin
  • ui_game_symbol_map_campsite
  • ui_game_symbol_map_cave
  • ui_game_symbol_map_city
  • ui_game_symbol_map_civil
  • ui_game_symbol_map_cursor
  • ui_game_symbol_map_fortress
  • ui_game_symbol_map_house
  • ui_game_symbol_map_player_arrow
  • ui_game_symbol_map_town
  • ui_game_symbol_map_trader
  • ui_game_symbol_map_waypoint_remove
  • ui_game_symbol_map_waypoint_set
  • ui_game_symbol_map
  • ui_game_symbol_medical
  • ui_game_symbol_mic
  • ui_game_symbol_minibike
  • ui_game_symbol_mining
  • ui_game_symbol_misc_crafting
  • ui_game_symbol_muscle
  • ui_game_symbol_natural_healing
  • ui_game_symbol_noise
  • ui_game_symbol_oxygen
  • ui_game_symbol_pen
  • ui_game_symbol_percent
  • ui_game_symbol_perk
  • ui_game_symbol_pills
  • ui_game_symbol_ping
  • ui_game_symbol_pistol
  • ui_game_symbol_player
  • ui_game_symbol_players
  • ui_game_symbol_quality_joe
  • ui_game_symbol_quest_remove
  • ui_game_symbol_quest
  • ui_game_symbol_radiation
  • ui_game_symbol_resource
  • ui_game_symbol_rifle
  • ui_game_symbol_run
  • ui_game_symbol_safe
  • ui_game_symbol_science
  • ui_game_symbol_scrap
  • ui_game_symbol_search
  • ui_game_symbol_seats
  • ui_game_symbol_service
  • ui_game_symbol_shirt
  • ui_game_symbol_shopping_cart
  • ui_game_symbol_shotgun
  • ui_game_symbol_skills
  • ui_game_symbol_skull
  • ui_game_symbol_sledge
  • ui_game_symbol_smell
  • ui_game_symbol_spatula
  • ui_game_symbol_speed
  • ui_game_symbol_splint
  • ui_game_symbol_stunned
  • ui_game_symbol_subtract
  • ui_game_symbol_tailoring
  • ui_game_symbol_tea
  • ui_game_symbol_temperature
  • ui_game_symbol_thirst
  • ui_game_symbol_tool_smithing
  • ui_game_symbol_tool
  • ui_game_symbol_treasure
  • ui_game_symbol_trophy
  • ui_game_symbol_unlock
  • ui_game_symbol_vending
  • ui_game_symbol_water
  • ui_game_symbol_weapon_smithing
  • ui_game_symbol_weight
  • ui_game_symbol_wet
  • ui_game_symbol_wind
  • ui_game_symbol_workbench
  • ui_game_symbol_wrench
  • ui_game_symbol_x
  • ui_game_symbol_zombie

To use these icons and also be able to use any icons from the ItemIcon atlas (and icons added the ItemIcons folder in a mod within the Mods folder) atlas="ItemIconAtlas" needs to be added in 3 places.

If buffs.xml you can for example change icon="ui_game_symbol_drunk" to icon="beer" and it will use the icon for the beer item. Note that the icon will get squished flat a bit. If you want the aspect ratio to be correct, the icon should be 64x64 pixels at the shape you want, then resize the icon to 116x80 and save as a .png to your Mods/Modname/ItemIcons folder.

Replace the BuffPopoutList window with the following (in windows.xml):

		<rect name="hud" pos="93,124" side="left" controller="BuffPopoutList" pivot="BottomLeft" >
			<panel width="168" height="43" name="item" visible="false" pivot="right" disableautobackground="true" pos="70, 0" >
				<sprite depth="3" pos="0,0" name="Background" sprite="ui_game_popup" height="43" width="162" pivot="center" flip="Horizontally" color="[transparent]" />
				<sprite depth="4" name="Icon" atlas="ItemIconAtlas" size="36,32" pos="-58,0" pivot="center" color="[transparent]"/>
				<label depth="6" name="TextContent" pos="0,0" font_size="28" color="[white]" justify="center" height="30" pivot="center"/>
			</panel>
		</rect>

Replace the buffInfoPanel window with the following (in windows.xml):

  <window name="buffInfoPanel" width="603" height="427" controller="BuffInfoWindow" anchor="CenterTop" panel="Center">
    <panel name="header" height="43" depth="1" backgroundspritename="ui_game_panel_header">
      <sprite depth="2" name="windowIcon" style="icon32px" pos="4,-5" atlas="ItemIconAtlas" sprite="{bufficon|once}"/>
      <label style="header.name" text="{buffname|once}"/>
    </panel>
    <rect name="contentBuffInfo" height="381" depth="1" pos="0,-46">
      <rect>
        <sprite depth="5" name="backgroundMain" sprite="menu_empty3px" width="603" height="381" color="[black]" type="sliced" fillcenter="false"/>
        <sprite depth="1" name="background" color="[black]" type="sliced" visible="false" sprite="menu_empty3px" fillcenter="false"/>
        <sprite depth="8" name="backgroundMain" sprite="menu_empty3px" pos="0,0" width="153" height="153" color="[black]" type="sliced" fillcenter="false"/>
        <sprite depth="1" pos="2,-3" name="preview" width="150" height="148" color="[darkGrey]" type="sliced"/>
        <sprite depth="3" name="itemPreview" width="100" height="100" atlas="ItemIconAtlas" sprite="{bufficon|once}" pos="27,-27" foregroundlayer="true"/>
        <sprite depth="8" name="backgroundMain" sprite="menu_empty3px" pos="0,-150" width="153" height="231" color="[black]" type="sliced" fillcenter="false"/>
        <grid name="itemActions" rows="4" cols="1" pos="3,-153" width="148" height="100%" cell_width="147" cell_height="42" controller="ItemActionList" repeat_content="true">
          <item_action_entry/>
        </grid>
        <sprite depth="3" name="fillerBackground" pos="3,-321" height="57" width="147" color="[mediumGrey]" type="sliced"/>
        <rect depth="1" pos="153,-3" name="description" width="447" height="195">
          <sprite depth="3" name="backgroundMain" sprite="menu_empty3px" pos="-3,3" width="453" height="201" color="[black]" type="sliced" fillcenter="false"/>
          <sprite depth="1" color="[mediumGrey]" type="sliced" globalopacity="true"/>
          <label depth="3" name="statText" pos="5,-6" width="443" text="{buffstats}"/>
        </rect>
        <rect depth="2" pos="153,-200" name="description" width="447" height="104">
          <sprite depth="1" color="[darkGrey]" type="sliced" globalopacity="true"/>
          <label depth="3" name="descriptionText" pos="6,-5" text="{buffdescription|once}" width="440"/>
        </rect>
        <grid rows="1" cols="6" pos="153,-306" cell_width="75" cell_height="75" repeat_content="true" controller="BuffItemList">
          <buff_item name="0"/>
        </grid>
      </rect>
    </rect>
  </window>

Finally replace active_buff_entry with the following (in controls.xml):

  <active_buff_entry>
    <panel height="43" controller="ActiveBuffEntry" width="314" style="press" sound="[recipe_click]" on_hover="true" disableautobackground="true" on_scroll="true">
      <sprite depth="2" name="backgroundMain" sprite="menu_empty3px" pos="-3,3" width="320" height="49" color="[black]" type="sliced" fillcenter="false"/>
      <sprite depth="0" name="background" color="[darkGrey]" type="sliced" height="45" width="316" pos="-1,1"/>
      <sprite depth="2" name="Icon" atlas="ItemIconAtlas" sprite="{bufficon|once}" style="icon32px" pos="5,-5"/>
      <label depth="2" pos="45,-8" width="280" height="30" text="{buffname|once}  [DECEA3]{buffdisplayinfo}[-]" font_size="28" pivot="topleft"/>
    </panel>
  </active_buff_entry>

Credit for the atlas="ItemIconAtlas" changes to Alphado-Jaki, DnaJur and n2n1.