What I want is a window showing levels of upgrades for each player, one window for each player showing their personal upgrade levels.
I've been trying to find a solution for quite a while now, anyone have an idea?
(If you don't know what a multiboard is.)
A multiboard is just like a Leaderboard with columns/rows, a window showing text and in some cases icons.
You have to do it with a dialog, just set variables for row and column size and then create your own table with that
using the leaderboard implemented is bad, it resizes when you maximize it and putting in data is really bad.
General - For each integer integer from 1 to 15 with increment 1, do (Actions)
Actions
Variable - Modify amountplayers: + 1
Variable - Set Boardslottoplayer[amountplayers] = integer
Variable - Set Boardplayertoslot[integer] = amountplayers
General - If (Conditions) then do (Actions) else do (Actions)
If
(Controller of player integer) != None
Then
Else
- minimized dialog
Dialog - Create a Non-modal dialog of size (500, ((row * 0) + ((firstrow * 2) - 75))) at (0, 30) relative to Top Right of screen
Variable - Set Boarddialogminimized = (Last created dialog)
Dialog - Create a Label for Dialog Boarddialogminimized with the dimensions (400, 50) anchored to Top Left with an offset of (50, 50) with the text "CardCraft SC" color set to White text writeout set to true with a writeout duration of 2.0
Variable - Set Boarditems2[7] = (Last created dialog item)
Dialog - Create a Button for Dialog Boarddialogminimized with the dimensions (40, 40) anchored to Top Right with an offset of (25, 25) setting the tooltip to "maximizes this dialog" with button text "_" and the hover image set to ""
Variable - Set Boarditems2[8] = (Last created dialog item)
Dialog - Create a Label for Dialog Boarddialogminimized with the dimensions (400, 50) anchored to Top Left with an offset of (275, 50) with the text "" color set to White text writeout set to false with a writeout duration of 2.0
Variable - Set Boarditems2[9] = (Last created dialog item)
Dialog - Create an Image for Dialog Boarddialogminimized with the dimensions (400, 10) anchored to Top Left with an offset of (50, 60) setting the tooltip to "" using the image Assets\Textures\ui_battlenet_glue_columbutton_frame_gradient.dds as a Normal type with tiled set to true tint color White and blend mode Normal
Variable - Set Boarditems2[10] = (Last created dialog item)
- normal dialog
Dialog - Create a Non-modal dialog of size (500, ((row * amountplayers) + ((firstrow * 2) - 15))) at (0, 30) relative to Top Right of screen
Variable - Set Boarddialog = (Last created dialog)
Dialog - Create an Image for Dialog Boarddialog with the dimensions (400, 10) anchored to Top Left with an offset of (50, 60) setting the tooltip to "" using the image Assets\Textures\ui_battlenet_glue_columbutton_frame_gradient.dds as a Normal type with tiled set to true tint color White and blend mode Normal
Variable - Set Boarditems2[0] = (Last created dialog item)
Dialog - Create a Button for Dialog Boarddialog with the dimensions (40, 40) anchored to Top Right with an offset of (25, 25) setting the tooltip to "minimizes this dialog" with button text "_" and the hover image set to ""
Variable - Set Boarditems2[1] = (Last created dialog item)
Dialog - Create a Label for Dialog Boarddialog with the dimensions (400, 50) anchored to Top Left with an offset of (50, 50) with the text "CardCraft SC" color set to White text writeout set to true with a writeout duration of 2.0
Variable - Set Boarditems2[2] = (Last created dialog item)
Dialog - Create a Label for Dialog Boarddialog with the dimensions (150, 50) anchored to Top Left with an offset of (50, 100) with the text "Playername" color set to White text writeout set to true with a writeout duration of 2.0
Variable - Set Boarditems2[3] = (Last created dialog item)
Dialog - Create a Label for Dialog Boarddialog with the dimensions (100, 50) anchored to Top Left with an offset of (200, 100) with the text "Deck" color set to White text writeout set to true with a writeout duration of 2.0
Variable - Set Boarditems2[4] = (Last created dialog item)
Dialog - Create a Label for Dialog Boarddialog with the dimensions (100, 50) anchored to Top Left with an offset of (300, 100) with the text "Wins" color set to White text writeout set to true with a writeout duration of 2.0
Variable - Set Boarditems2[5] = (Last created dialog item)
Dialog - Create a Label for Dialog Boarddialog with the dimensions (100, 50) anchored to Top Left with an offset of (400, 100) with the text "Loses" color set to White text writeout set to true with a writeout duration of 2.0
Variable - Set Boarditems2[5] = (Last created dialog item)
Dialog - Create a Label for Dialog Boarddialog with the dimensions (400, 50) anchored to Top Left with an offset of (275, 50) with the text "" color set to White text writeout set to false with a writeout duration of 2.0
Variable - Set Boarditems2[6] = (Last created dialog item)
- turn on gametime trigger
Trigger - Turn Board gametime On
- set player related content into board
General - For each integer integer from 1 to amountplayers with increment 1, do (Actions)
Actions
Dialog - Create an Image for Dialog Boarddialog with the dimensions (400, 17) anchored to Top Left with an offset of (50, ((row * integer) + firstrow)) setting the tooltip to "" using the image Assets\Textures\white32.dds as a Normal type with tiled set to true tint color (Color((Current player Boardslottoplayer[integer] color))) and blend mode Add
Variable - Set Boarditems[integer][4] = (Last created dialog item)
General - If (Conditions) then do (Actions) else do (Actions)
If
(Controller of player Boardslottoplayer[integer]) != User
Then
Dialog - Create a Label for Dialog Boarddialog with the dimensions (150, 50) anchored to Top Left with an offset of (50, ((row * integer) + firstrow)) with the text ("Player " + (Text(Boardslottoplayer[integer]))) color set to White text writeout set to true with a writeout duration of 2.0
Else
Variable - Set playername = (Name of player integer)
Dialog - Create a Label for Dialog Boarddialog with the dimensions (150, 50) anchored to Top Left with an offset of (50, ((row * integer) + firstrow)) with the text playername color set to White text writeout set to true with a writeout duration of 2.0
Variable - Set Boarditems[integer][0] = (Last created dialog item)
Dialog - Create a Label for Dialog Boarddialog with the dimensions (100, 50) anchored to Top Left with an offset of (225, ((row * integer) + firstrow)) with the text "0" color set to White text writeout set to false with a writeout duration of 2.0
Variable - Set Boarditems[integer][1] = (Last created dialog item)
Dialog - Create a Label for Dialog Boarddialog with the dimensions (100, 50) anchored to Top Left with an offset of (325, ((row * integer) + firstrow)) with the text "0" color set to White text writeout set to true with a writeout duration of 2.0
Variable - Set Boarditems[integer][2] = (Last created dialog item)
Dialog - Create a Label for Dialog Boarddialog with the dimensions (100, 50) anchored to Top Left with an offset of (425, ((row * integer) + firstrow)) with the text "0" color set to White text writeout set to true with a writeout duration of 2.0
Variable - Set Boarditems[integer][3] = (Last created dialog item)
Trigge Error in
'gt_multiboardtest_Func': Could not
get 'dialog' from parameter
'CreateDialogControl' (value: 0)
What's different in mine, I had to do this "boarditem[bla]" variables as local variables, also "Boardslottoplayer[amountplayers]" and Boardplayertoslot[integer]" are locals. So maybe there is the fault? I don't know what to do.
Edit: Ok, it works. "For each integer integer ..." was wrong. But the button does not work (dont see any command for this in your post).
the variables with a capital at the beginning are global ones in mine.
About the your error, do you use parameters? its saying that it can not get the dialog from there like you used this as as an action but you did not put in the dialog you want to modify
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
What I want is a window showing levels of upgrades for each player, one window for each player showing their personal upgrade levels. I've been trying to find a solution for quite a while now, anyone have an idea?
(If you don't know what a multiboard is.) A multiboard is just like a Leaderboard with columns/rows, a window showing text and in some cases icons.
Thanks in advance, Ice_bane
You have to do it with a dialog, just set variables for row and column size and then create your own table with that using the leaderboard implemented is bad, it resizes when you maximize it and putting in data is really bad.
@BeLugh: Go
Hmm, that's right.. The thing is I just don't know how to get the colums/rows going, you said that setting variables as rows and colums, but how? ;P
@Ice_bane: Go
i did mine like this:
Timer - Elapsed time is 1.0 Game Time seconds
Local Variables
firstrow = 100 <Integer>
row = 25 <Integer>
integer = 0 <Integer>
amountplayers = 0 <Integer>
playername = No Text <Text>
Conditions
Actions
General - For each integer integer from 1 to 15 with increment 1, do (Actions)
Actions
Variable - Modify amountplayers: + 1
Variable - Set Boardslottoplayer[amountplayers] = integer
Variable - Set Boardplayertoslot[integer] = amountplayers
General - If (Conditions) then do (Actions) else do (Actions)
If
(Controller of player integer) != None
Then
Else
-minimized dialogDialog - Create a Non-modal dialog of size (500, ((row * 0) + ((firstrow * 2) - 75))) at (0, 30) relative to Top Right of screen
Variable - Set Boarddialogminimized = (Last created dialog)
Dialog - Create a Label for Dialog Boarddialogminimized with the dimensions (400, 50) anchored to Top Left with an offset of (50, 50) with the text "CardCraft SC" color set to White text writeout set to true with a writeout duration of 2.0
Variable - Set Boarditems2[7] = (Last created dialog item)
Dialog - Create a Button for Dialog Boarddialogminimized with the dimensions (40, 40) anchored to Top Right with an offset of (25, 25) setting the tooltip to "maximizes this dialog" with button text "_" and the hover image set to ""
Variable - Set Boarditems2[8] = (Last created dialog item)
Dialog - Create a Label for Dialog Boarddialogminimized with the dimensions (400, 50) anchored to Top Left with an offset of (275, 50) with the text "" color set to White text writeout set to false with a writeout duration of 2.0
Variable - Set Boarditems2[9] = (Last created dialog item)
Dialog - Create an Image for Dialog Boarddialogminimized with the dimensions (400, 10) anchored to Top Left with an offset of (50, 60) setting the tooltip to "" using the image Assets\Textures\ui_battlenet_glue_columbutton_frame_gradient.dds as a Normal type with tiled set to true tint color White and blend mode Normal
Variable - Set Boarditems2[10] = (Last created dialog item)
-normal dialogDialog - Create a Non-modal dialog of size (500, ((row * amountplayers) + ((firstrow * 2) - 15))) at (0, 30) relative to Top Right of screen
Variable - Set Boarddialog = (Last created dialog)
Dialog - Create an Image for Dialog Boarddialog with the dimensions (400, 10) anchored to Top Left with an offset of (50, 60) setting the tooltip to "" using the image Assets\Textures\ui_battlenet_glue_columbutton_frame_gradient.dds as a Normal type with tiled set to true tint color White and blend mode Normal
Variable - Set Boarditems2[0] = (Last created dialog item)
Dialog - Create a Button for Dialog Boarddialog with the dimensions (40, 40) anchored to Top Right with an offset of (25, 25) setting the tooltip to "minimizes this dialog" with button text "_" and the hover image set to ""
Variable - Set Boarditems2[1] = (Last created dialog item)
Dialog - Create a Label for Dialog Boarddialog with the dimensions (400, 50) anchored to Top Left with an offset of (50, 50) with the text "CardCraft SC" color set to White text writeout set to true with a writeout duration of 2.0
Variable - Set Boarditems2[2] = (Last created dialog item)
Dialog - Create a Label for Dialog Boarddialog with the dimensions (150, 50) anchored to Top Left with an offset of (50, 100) with the text "Playername" color set to White text writeout set to true with a writeout duration of 2.0
Variable - Set Boarditems2[3] = (Last created dialog item)
Dialog - Create a Label for Dialog Boarddialog with the dimensions (100, 50) anchored to Top Left with an offset of (200, 100) with the text "Deck" color set to White text writeout set to true with a writeout duration of 2.0
Variable - Set Boarditems2[4] = (Last created dialog item)
Dialog - Create a Label for Dialog Boarddialog with the dimensions (100, 50) anchored to Top Left with an offset of (300, 100) with the text "Wins" color set to White text writeout set to true with a writeout duration of 2.0
Variable - Set Boarditems2[5] = (Last created dialog item)
Dialog - Create a Label for Dialog Boarddialog with the dimensions (100, 50) anchored to Top Left with an offset of (400, 100) with the text "Loses" color set to White text writeout set to true with a writeout duration of 2.0
Variable - Set Boarditems2[5] = (Last created dialog item)
Dialog - Create a Label for Dialog Boarddialog with the dimensions (400, 50) anchored to Top Left with an offset of (275, 50) with the text "" color set to White text writeout set to false with a writeout duration of 2.0
Variable - Set Boarditems2[6] = (Last created dialog item)
-turn on gametime triggerTrigger - Turn Board gametime On
-set player related content into boardGeneral - For each integer integer from 1 to amountplayers with increment 1, do (Actions)
Actions
Dialog - Create an Image for Dialog Boarddialog with the dimensions (400, 17) anchored to Top Left with an offset of (50, ((row * integer) + firstrow)) setting the tooltip to "" using the image Assets\Textures\white32.dds as a Normal type with tiled set to true tint color (Color((Current player Boardslottoplayer[integer] color))) and blend mode Add
Variable - Set Boarditems[integer][4] = (Last created dialog item)
General - If (Conditions) then do (Actions) else do (Actions)
If
(Controller of player Boardslottoplayer[integer]) != User
Then
Dialog - Create a Label for Dialog Boarddialog with the dimensions (150, 50) anchored to Top Left with an offset of (50, ((row * integer) + firstrow)) with the text ("Player " + (Text(Boardslottoplayer[integer]))) color set to White text writeout set to true with a writeout duration of 2.0
Else
Variable - Set playername = (Name of player integer)
Dialog - Create a Label for Dialog Boarddialog with the dimensions (150, 50) anchored to Top Left with an offset of (50, ((row * integer) + firstrow)) with the text playername color set to White text writeout set to true with a writeout duration of 2.0
Variable - Set Boarditems[integer][0] = (Last created dialog item)
Dialog - Create a Label for Dialog Boarddialog with the dimensions (100, 50) anchored to Top Left with an offset of (225, ((row * integer) + firstrow)) with the text "0" color set to White text writeout set to false with a writeout duration of 2.0
Variable - Set Boarditems[integer][1] = (Last created dialog item)
Dialog - Create a Label for Dialog Boarddialog with the dimensions (100, 50) anchored to Top Left with an offset of (325, ((row * integer) + firstrow)) with the text "0" color set to White text writeout set to true with a writeout duration of 2.0
Variable - Set Boarditems[integer][2] = (Last created dialog item)
Dialog - Create a Label for Dialog Boarddialog with the dimensions (100, 50) anchored to Top Left with an offset of (425, ((row * integer) + firstrow)) with the text "0" color set to White text writeout set to true with a writeout duration of 2.0
Variable - Set Boarditems[integer][3] = (Last created dialog item)
Dialog - Show Boarddialog for (All players)
@BeLugh: Go
I tried to copy this, but It does not work.
It calls this error message:
Trigge Error in 'gt_multiboardtest_Func': Could not get 'dialog' from parameter 'CreateDialogControl' (value: 0)
What's different in mine, I had to do this "boarditem[bla]" variables as local variables, also "Boardslottoplayer[amountplayers]" and Boardplayertoslot[integer]" are locals. So maybe there is the fault? I don't know what to do.
Edit: Ok, it works. "For each integer integer ..." was wrong. But the button does not work (dont see any command for this in your post).
the variables with a capital at the beginning are global ones in mine.
About the your error, do you use parameters? its saying that it can not get the dialog from there like you used this as as an action but you did not put in the dialog you want to modify