Weedspage
Based on game build 714014 | Last updated: 2026-03-08
Overview
WeedsPage is a UI widget class used to structure and organize content related to weeds in the game's user interface. It extends the base Widget class and is intended to serve as a container for weed-specific UI elements, though the current implementation is minimal and does not initialize any child widgets or set up event handlers. It accepts a parent widget and a boolean flag (ismodded) during construction, suggesting support for differentiating between base-game and modded weed content.
Usage example
local WeedsPage = require("widgets/redux/weedspage")
local parent_widget = some_widget -- existing UI container
local page = WeedsPage(parent_widget, true) -- create a modded weeds page
Dependencies & tags
Components used: None (no components attached via inst:AddComponent).
Tags: None identified.
Properties
No public properties.
Main functions
WeedsPage(parent, ismodded)
- Description: Constructor for the
WeedsPagewidget. Initializes the widget with the name"WeedsPage"and stores the parent widget reference implicitly through the baseWidgetclass. Theismoddedparameter is accepted but not used in the current implementation. - Parameters:
parent(Widget) – The parent UI widget to which this page belongs.ismodded(boolean) – Flag indicating whether the weed content is modded; currently unused.
- Returns: Nothing (constructs and returns a
WeedsPageinstance). - Error states: None identified.
Events & listeners
None.