mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
4a66374e24
- Introduced FeedCard and FieldShow scenes with corresponding GDScript files for managing feed and item display. - Added SVG resources for banana and baseball items. - Updated ItemStore to include mappings for item types and names in Chinese. - Enhanced FieldShow and ItemShow scripts to dynamically update UI elements based on exported properties. - Implemented a new Feed class for structured feed data handling.
15 lines
244 B
GDScript
15 lines
244 B
GDScript
@tool
|
|
class_name ItemStore
|
|
|
|
enum ItemType {
|
|
BASEBALL,
|
|
BASKETBALL
|
|
}
|
|
static var nameMap = {
|
|
ItemType.BASEBALL: "棒球",
|
|
ItemType.BASKETBALL: "篮球"
|
|
}
|
|
static var idMap = {
|
|
ItemType.BASEBALL: "baseball",
|
|
ItemType.BASKETBALL: "basketball"
|
|
} |