mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-11 16:17:43 -04:00
One extra token per column.
This commit is contained in:
parent
36b8600d65
commit
c95efd56f7
@ -25,7 +25,7 @@ namespace MCGalaxy.Gui.Popups {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const int btnWidth = 130, btnHeight = 40, btnsPerCol = 8;
|
const int btnWidth = 110, btnHeight = 40, btnsPerCol = 9;
|
||||||
int index = 0;
|
int index = 0;
|
||||||
void MakeButton(ChatToken token) {
|
void MakeButton(ChatToken token) {
|
||||||
int row = index / btnsPerCol, col = index % btnsPerCol;
|
int row = index / btnsPerCol, col = index % btnsPerCol;
|
||||||
|
@ -313,7 +313,7 @@ namespace MCGalaxy.Commands.CPE {
|
|||||||
|
|
||||||
if (def == null && block.BlockID < Block.CpeCount) {
|
if (def == null && block.BlockID < Block.CpeCount) {
|
||||||
def = DefaultSet.MakeCustomBlock(block.BlockID);
|
def = DefaultSet.MakeCustomBlock(block.BlockID);
|
||||||
AddBlock(p, def, global, cmd, BlockDefinition.GlobalProps[block.Index]);
|
AddBlock(p, def, global, cmd, BlockDefinition.DefaultProps(block));
|
||||||
}
|
}
|
||||||
if (!ExistsInScope(def, block, global)) { MessageNoBlock(p, block, global, cmd); return; }
|
if (!ExistsInScope(def, block, global)) { MessageNoBlock(p, block, global, cmd); return; }
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user