Button: Difference between revisions

From PZwiki
m (Removing trailing whitespace(s))
m (Distribution table update)
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{languages}}
{{Header|Project Zomboid|Items|Miscellaneous items|Junk}}
{{Header/sandbox2|Project Zomboid|Items|Miscellaneous items|Junk}}
{{Page version|41.78.16}}
{{Page version|41.78.16}}
{{Infobox item
{{Infobox item
| display_name = Button
|name=Button
| name_colour =
|model=Button_Model.png
| name_text_colour =
|model_width=200px
| model = Button_Model.png
|icon=Button.png
| model_width = 200px
|icon_name=Button
| icon = Button.png
|category=Junk
| icon_name = Button
|weight=0.1
| category = Junk
|function=''None''
| weight = 0.1
|item_id=Base.Button
| function = ''None''
}}
| class_name = Base.Button
'''Buttons''' are currently a useless {{ll|item}}, and often considered as ''junk''.
}}'''Buttons''' are currently a useless {{T|item}}, and often considered as ''junk''.


==Usage==
==Usage==
Buttons have no use, being added purely for the purpose of clutter, creating more realism for the {{T|player}} when looting.
Buttons have no use, being added purely for the purpose of clutter, creating more realism for the {{ll|player}} when looting.


{{clear}}
==Distribution==
==Distribution==
The loot distributions can be found in the table(s) below.
The loot distributions can be found in the table(s) below.


{| class="mw-collapsible mw-collapsed wikitable theme-red" data-expandtext="{{int:show}}" data-collapsetext="{{int:hide}}" style="text-align:center; min-width:24em;"
<!--BOT FLAG|Button|41.78.16-->
! colspan="4" | Containers
{{clear}}
|-
<div class="togglebox theme-red">
!Building/Room
    <div>Button distribution
!Container
        <span class="mw-customtoggle-togglebox-Button" title="{{int:show}} / {{int:hide}}" style="float:right; padding-right:30px; padding-top:4px; font-size:0.7em; font-weight:normal;">{{int:show}} / {{int:hide}}</span></div>
! style="width: 3.2em;" |Rolls
    <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-togglebox-Button">
! style="width: 3.2em;" |Chance
    <div class="toggle-content"><div style="display: flex;"><div style="float:left;">
|-
    {| class="wikitable theme-red" style="margin-right:15px; width:95%;"
| rowspan="2"|sewingstorage
    |+ {{ll|Containers}}
| [[metal_shelves]]
    ! Building / Room
| 4
    ! Container
| 6
    ! Rolls
|-
    ! Chance
|[[metal_shelves]]
    |-
|4
    | departmentstorage
|6
    | {{ll|metal_shelves}}
|}
    | 4
    | 10.0
    |-
    | sewingstorage
    | {{ll|metal_shelves}}
    | 4
    | 6.0
    |}
</div>
    </div><div style="clear:both;"></div>
    </div></div><div class="toggle large mw-customtoggle-togglebox-Button" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|Button|41.78.16-->


==Code==
==Code==
Line 46: Line 54:
   | lang = java
   | lang = java
   | line = true
   | line = true
   | start = 0
   | start = 296
   | source = newitems.txt
   | source = newitems.txt
   | retrieved = true
   | retrieved = true
Line 52: Line 60:
   | code =
   | code =
item Button
item Button
{
    {
    DisplayCategory = Junk,
        DisplayCategory = Junk,
    Weight = 0.1,
        Weight = 0.1,
    Type = Normal,
        Type = Normal,
    DisplayName = Button,
        DisplayName = Button,
    Icon = Button,
        Icon = Button,
    WorldStaticModel = Button,
        WorldStaticModel = Button,
}
    }
  }}
}}
}}
}}


Line 66: Line 74:
* [[Comb]]
* [[Comb]]
* [[Knitting Needles]]
* [[Knitting Needles]]
{{Navbox items|junk}}

Revision as of 15:06, 24 April 2024

UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
Button
Button Model.png
General
Category
Junk
Encumbrance
Moodle Icon HeavyLoad.png
0.1
Function
None
Technical
Item ID
Base.Button

Buttons are currently a useless item, and often considered as junk.

Usage

Buttons have no use, being added purely for the purpose of clutter, creating more realism for the player when looting.

Distribution

The loot distributions can be found in the table(s) below.

Button distribution Show / Hide
Containers
Building / Room Container Rolls Chance
departmentstorage metal_shelves 4 10.0
sewingstorage metal_shelves 4 6.0

Code

Code icon.png Code snippet! This section contains source code from Project ZomboidShow / Hide

Source: ProjectZomboid\media\scripts\newitems.txt

Retrieved: Build 41.78.16
item Button
    {
        DisplayCategory = Junk,
        Weight	=	0.1,
        Type	=	Normal,
        DisplayName	=	Button,
        Icon	=	Button,
        WorldStaticModel = Button,
    }

See also