Skip to content

Commit

Permalink
增加迷你方块(从暂停菜单中开启) (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wing924 authored May 17, 2023
1 parent 71ad35b commit 0b8a2de
Show file tree
Hide file tree
Showing 10 changed files with 477 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# CHANGE-LOG

## Unreleased

### New Features

- 增加迷你方块(从暂停菜单中开启)

## v1.11.0

### Updates
Expand Down
1 change: 1 addition & 0 deletions config/pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ patches:
- patches/14_hide_wall
- patches/15_show_asn_charge
- patches/16_reduce_asn_effect
- patches/17_mini_cube

pipelines:
- name: add English name and detailed info (base item)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{
"type": "HoradricCubePanel",
"name": "HoradricCubeMiniLayout",
"fields": {
"priority": 10,
"rect": {
"x": -320,
"y": 226
},
"anchor": "$RightPanelAnchor"
},
"children": [
{
"type": "ImageWidget",
"name": "background",
"fields": {
"filename": "PANEL\\horadric_cube\\cube_grid"
}
},
{
"type": "ButtonWidget",
"name": "convert",
"fields": {
"rect": {
"x": 180,
"y": 460,
"scale": 0.5
},
"filename": "PANEL\\horadric_cube\\TransmuteButton",
"tooltipString": "@strUiMenu2",
"hoveredFrame": 2,
"onClickMessage": "HoradricCubePanelMessage:Convert"
}
},
{
"type": "ButtonWidget",
"name": "close",
"fields": {
"rect": {
"x": 240,
"y": 454
},
"filename": "PANEL\\closebtn_4x",
"hoveredFrame": 3,
"tooltipString": "@strClose",
"sound": "cursor_close_window_hd",
"onClickMessage": "PanelManager:ClosePanel:HoradricCubeMiniLayout"
}
},
{
"type": "InventoryGridWidget",
"name": "grid",
"fields": {
"rect": {
"x": 25,
"y": 20
},
"cellCount": {
"x": 3,
"y": 4
},
"cellSize": "$ItemCellSize",
"gemSocketFilename": "PANEL\\gemsocket"
}
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"children": [
"(( append ))",
{
"type": "TableWidget",
"name": "ExtraTable",
"fields": {
"anchor": {
"x": 0.5,
"y": 0.5
},
"rect": {
"x": -329,
"y": 140
},
"columns": [
{
"width": 658,
"alignment": {
"h": "center",
"v": "center"
}
}
],
"rowHeight": 140,
"generateFocusLinks": true
},
"children": [
{
"type": "TableRowWidget",
"name": "Row Options",
"children": [
{
"type": "ButtonWidget",
"name": "MiniCube",
"fields": {
"filename": "PauseMenu\\PauseButton",
"hoveredFrame": 3,
"textString": "@Small@box",
"onClickMessage": "PanelManager:TogglePanel:HoradricCubeMiniLayout",
"textColor": "$LightButtonTextColor",
"text/style": "$StyleFEButtonText",
"acceptsReturnKey": true,
"focusOnMouseOver": true,
"sound": "select"
}
}
]
}
]
}
]
}
Binary file not shown.
Binary file not shown.
67 changes: 67 additions & 0 deletions wing.mpq/data/global/ui/layouts/horadriccubeminilayouthd.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{
"type": "HoradricCubePanel",
"name": "HoradricCubeMiniLayout",
"fields": {
"priority": 10,
"rect": {
"x": -320,
"y": 226
},
"anchor": "$RightPanelAnchor"
},
"children": [
{
"type": "ImageWidget",
"name": "background",
"fields": {
"filename": "PANEL\\horadric_cube\\cube_grid"
}
},
{
"type": "ButtonWidget",
"name": "convert",
"fields": {
"rect": {
"x": 180,
"y": 460,
"scale": 0.5
},
"filename": "PANEL\\horadric_cube\\TransmuteButton",
"tooltipString": "@strUiMenu2",
"hoveredFrame": 2,
"onClickMessage": "HoradricCubePanelMessage:Convert"
}
},
{
"type": "ButtonWidget",
"name": "close",
"fields": {
"rect": {
"x": 240,
"y": 454
},
"filename": "PANEL\\closebtn_4x",
"hoveredFrame": 3,
"tooltipString": "@strClose",
"sound": "cursor_close_window_hd",
"onClickMessage": "PanelManager:ClosePanel:HoradricCubeMiniLayout"
}
},
{
"type": "InventoryGridWidget",
"name": "grid",
"fields": {
"rect": {
"x": 25,
"y": 20
},
"cellCount": {
"x": 3,
"y": 4
},
"cellSize": "$ItemCellSize",
"gemSocketFilename": "PANEL\\gemsocket"
}
}
]
}
Loading

0 comments on commit 0b8a2de

Please sign in to comment.