Warning, /rolisteam/rolisteam-community-data/charactersheets/en/Shadowrun/SR_RollManager.qml is written in an unsupported language. File is not indexed.

0001 import QtQuick 2.4
0002 import QtQuick.Layouts 1.3
0003 import QtQuick.Controls 2.3
0004 import Rolisteam 1.1
0005 
0006 Item {
0007     id:root
0008     property alias realscale: imagebg.realscale
0009     focus: true
0010     property int page: 0
0011     property int maxPage:0
0012     onPageChanged: {
0013         page=page>maxPage ? maxPage : page<0 ? 0 : page
0014     }
0015     Keys.onLeftPressed: --page
0016     Keys.onRightPressed: ++page
0017     signal rollDiceCmd(string cmd, bool alias)
0018     signal showText(string text)
0019     MouseArea {
0020          anchors.fill:parent
0021          onClicked: root.focus = true
0022      }
0023 
0024     // ************
0025     // **  TODO ***
0026     // ** *
0027     // - hard set readonly in header section
0028 
0029     
0030     // ///
0031     // Id-Name
0032     // ------
0033     // id_124  : PoolUse1
0034     // id_126  : PoolUse2
0035     // id_125  : PoolUsed1
0036     // id_127  : PoolUsed2
0037     // id_128  : PoolUseSum
0038     // id_5054 : WholePageBtn
0039     // id_219  : EditOn
0040     // id_138  : InitAdd
0041     // id_137  : InitD6
0042     // id_140  : ModifBase
0043     // id_141  : ModifPerm
0044     // id_142  : ModifTmp
0045     // id_143  : ModifSum
0046     // id_144  : ThrManuel
0047     // id_151  : ThrTrg
0048 
0049     // ///
0050     // Global Vars
0051     // ------
0052     property int selectField:0
0053     property int selectValue:0
0054     property int selectTrgMod:0
0055     property int skillEdit:0
0056     property int reactEdit:0
0057     property int diceClicked:0
0058     property int monStunValue:0
0059     property int monPhysValue:0
0060 
0061     // //////////////////////
0062     // FUNCTIONS
0063     // /////////
0064 
0065     // ---
0066     // Whole page button
0067     function getWhlPgBtnVisible() {
0068          return ((id_219.value*1) > 0);
0069     }
0070 
0071     // ---
0072     // Selection functions
0073     function resetSelect() {
0074         selectField = 0
0075         selectValue = 0
0076         selectTrgMod = 0
0077     }
0078 
0079     // ---
0080     // Edit functions
0081     function editReset() {
0082         skillEdit = 0
0083         reactEdit = 0
0084     }
0085     function getEditBtnColor() {
0086         return "#ff000000";
0087     }
0088     function getEditBtnBgColor() {
0089         return "#ffe7dc8a";
0090     }
0091     function getEditBtnPrsColor() {
0092         return "#de2121";
0093     }
0094     function getEditBtnTxtColor() {
0095         return "#ff000000";
0096     }
0097     function getEditNameColor(editValue) {
0098         return "#ff000000";
0099     }
0100     function getEditNameBgcolor(editValue, nameValue) {
0101         switch ((id_219.value*1) > 0 && !getEditNameReadonly(editValue, nameValue)) {
0102             case true: return getEditBtnBgColor();
0103             case false: return "#00000000";
0104         }
0105     }
0106     function getEditNameVisible(editValue, nameValue) {
0107         return (getEditTblVisible(editValue) || editValue == nameValue);
0108     }
0109     function getEditNameReadonly(editValue, nameValue) {
0110         return (editValue != nameValue);
0111     }
0112     function getEditNameZ(editValue) {
0113         switch (editValue > 0) {
0114             case true: return editValue + 11
0115             case false: return 0;
0116         }
0117     }
0118     function getEditTblVisible(editValue) {
0119         return (editValue == 0);
0120     }
0121 
0122 
0123     // ---
0124     // Pools and new turns Functions
0125     function poolApplyUsed() { // New turn
0126         // /* PoolUsed1 = PoolUsed1 + PoolUse1 */
0127         id_125.value = id_125.value*1 + id_124.value*1;
0128         id_124.value = 0;
0129         // /* PoolUsed2 = PoolUsed2 + PoolUse2 */
0130         id_127.value = id_127.value*1 + id_126.value*1;
0131         id_126.value = 0;
0132     }
0133     function poolReset() {
0134         id_124.value = 0;
0135         id_126.value = 0;
0136         id_125.value = 0;
0137         id_127.value = 0;
0138     }
0139     function modifReset() {
0140        id_142.value = 0;  // ModifTmp
0141     }
0142     function newThrow() {
0143        poolApplyUsed()
0144        modifReset()
0145     }
0146     function newTurn() {
0147        poolReset()
0148        modifReset()
0149     }
0150 
0151     // --
0152     // Throwing and Dice Functions
0153     function getThrD6() {
0154         // selectValue + PoolUseSum
0155         return selectValue + id_128.value*1;
0156     }
0157     function getThrTrg() {
0158         if (!Number.isInteger(id_151.value*1)) return 0;
0159         return id_151.value*1;
0160     }
0161     function getThrTrgAjusted() {
0162         if (getThrTrg() == 0) return 0;
0163         // Target is always minimum 2
0164         if (getThrTrg() + id_143.value*1 < 2) return 2;
0165         return getThrTrg() + id_143.value*1;
0166     }
0167     function getThrOpenEnabled() {
0168         if (getThrD6() <= 0) return false;
0169         return true;
0170     }
0171     function getThrTrgEnabled() {
0172         if (getThrD6() <= 0) return false;
0173         if (getThrTrgAjusted() < 2) return false;
0174         return true;
0175     }
0176     function getThrInitEnabled() {
0177         // For future implementation
0178         // return (id_138.value*1 <= 0);
0179         return true;
0180     }
0181 
0182     // --
0183     // Monitors Functions
0184     function getMonColor(monValue, boxNb) {
0185         if (boxNb > monValue || monValue == 0) return "#00000000";
0186         switch (true) {
0187             case (monValue < 3): return "#069a2e";  // Green
0188             case (monValue < 6): return "#e6e905";  // Yellow
0189             case (monValue < 10): return "#ea7500"; // Orange
0190             case (monValue == 10): return "#f10d0c";   // Red
0191         }
0192     }
0193     function getMonStunMalus() {
0194         if (monStunValue < 1) {
0195             return 0;
0196         } else if (monStunValue < 3) {
0197             return 1;
0198         } else if (monStunValue < 6) {
0199             return 2;
0200         } else {
0201             return 3;
0202         }
0203     }
0204     function getMonPhysMalus() {
0205         if (monPhysValue < 1) {
0206             return 0;
0207         } else if (monPhysValue < 3) {
0208             return 1;
0209         } else if (monPhysValue < 6) {
0210             return 2;
0211         } else {
0212             return 3;
0213         }
0214     }
0215     function getMonMalus() {
0216         var i;
0217         i = getMonStunMalus();
0218         i = i + getMonPhysMalus();
0219         return i;
0220     }
0221     // END
0222     // ///
0223 
0224     // Background image
0225     Image {
0226         id:imagebg
0227         objectName:"imagebg"
0228         property real iratio :0.734579
0229         property real iratiobis :1.36132
0230         property real realscale: width/393
0231         width:(parent.width>parent.height*iratio)?iratio*parent.height:parent.width
0232         height:(parent.width>parent.height*iratio)?parent.height:iratiobis*parent.width
0233         source: "image://rcs/513083d2-654d-45fc-875c-db37b0c6fa2a_background_%1.jpg".arg(root.page)
0234 
0235     // ///
0236     // CONTENT BEGIN
0237     // /
0238 
0239     DiceButton {//WholePageBtn
0240         id: _id_5054
0241         command: id_5054.value
0242         text: id_5054.label
0243         pressedColor: "#00000000"
0244         color: "#00000000"
0245         backgroundColor: "#00000000"
0246         textColor: "#00000000"
0247         visible: root.page == 0 && getWhlPgBtnVisible()? true : false
0248         readOnly: id_5054.readOnly
0249         tooltip:""
0250         x:0*root.realscale
0251         y:0*root.realscale
0252         z: id_219.value*1 + 10  // EditOn
0253         width:393*root.realscale
0254         height:535*root.realscale
0255         hAlign: TextInput.AlignHCenter
0256         vAlign: TextInput.AlignVCenter
0257         font.family:  "Sans Serif"
0258         font.bold:    false
0259         font.italic:  false
0260         font.underline: false
0261         font.pointSize: 9
0262         font.overline: false
0263         font.strikeout: false
0264         onClicked: editReset()
0265     }
0266 
0267     TextInputField {//EditOn
0268         id: _id_219
0269         text: skillEdit + reactEdit
0270         color:"#ff000000"
0271         backgroundColor: "#00000000"
0272         visible: false
0273         readOnly: id_219.readOnly
0274         tooltip:""
0275         x:0*root.realscale
0276         y:0*root.realscale
0277         width:6*root.realscale
0278         height:15*root.realscale
0279         hAlign: TextInput.AlignHCenter
0280         vAlign: TextInput.AlignVCenter
0281         font.family:  "Sans Serif"
0282         font.bold:    false
0283         font.italic:  false
0284         font.underline: false
0285         font.pointSize: 9
0286         font.overline: false
0287         font.strikeout: false
0288         onTextChanged: {
0289             id_219.value = text
0290         }
0291     }
0292 
0293     TextInputField {//CharName
0294         id: _id_1
0295         text: id_1.value
0296         color:"#ff000000"
0297         backgroundColor: "#00000000"
0298         visible: root.page == 0? true : false
0299         readOnly: id_1.readOnly
0300         tooltip:""
0301         x:8*root.realscale
0302         y:6*root.realscale
0303         width:199*root.realscale
0304         height:39.5*root.realscale
0305         hAlign: TextInput.AlignHCenter
0306         vAlign: TextInput.AlignVCenter
0307         font.family:  "TeX Gyre Bonum"
0308         font.bold:    false
0309         font.italic:  false
0310         font.underline: false
0311         font.pointSize: 16
0312         font.overline: false
0313         font.strikeout: false
0314         onTextChanged: {
0315             id_1.value = text
0316         }
0317     }
0318     ImageField {//CharAvatar
0319         id: _id_2
0320         source: id_2.value
0321         color: "#00000000"
0322         visible: root.page == 0? true : false
0323         readOnly: id_2.readOnly
0324         x:211.5*root.realscale
0325         y:6*root.realscale
0326         width:70*root.realscale
0327         height:71*root.realscale
0328     }
0329 
0330 
0331     // MONITORS
0332     Table{//MonStunTbl
0333         id: _id_3list
0334         field: id_3
0335         x:25*root.realscale
0336         y:49*root.realscale
0337         width:180*root.realscale
0338         height:19*root.realscale
0339         visible: root.page == 0? true : false
0340         maxRow:1
0341         model: id_3.model
0342         delegate: RowLayout {
0343             height: _id_3list.height/_id_3list.maxRow
0344             width:  _id_3list.width
0345             spacing:0
0346             CheckBoxField {//MonStunBox1
0347                 field: MonStunBox1
0348                 text: monStunValue >= 1? 1 : 0
0349                 color: getMonColor(monStunValue, 1)
0350                 borderColor: "#ff000000"
0351                 visible: root.page == 0? true : false
0352                 readOnly: MonStunBox1.readOnly
0353                 tooltip:""
0354                 Layout.fillHeight: true
0355                 Layout.preferredWidth: 18*root.realscale
0356                 onClicked: {
0357                     if (monStunValue == 1) {
0358                         monStunValue = 0
0359                     } else {
0360                         monStunValue = 1
0361                     }
0362                 }
0363             }
0364             CheckBoxField {//MonStunBox2
0365                 field: MonStunBox2
0366                 text: monStunValue >= 2? 1 : 0
0367                 color: getMonColor(monStunValue, 2)
0368                 borderColor: "#ff000000"
0369                 visible: root.page == 0? true : false
0370                 readOnly: MonStunBox2.readOnly
0371                 tooltip:""
0372                 Layout.fillHeight: true
0373                 Layout.preferredWidth: 18*root.realscale
0374                 onClicked: {
0375                     if (monStunValue == 2) {
0376                         monStunValue = 1
0377                     } else {
0378                         monStunValue = 2
0379                     }
0380                 }
0381             }
0382             CheckBoxField {//MonStunBox3
0383                 field: MonStunBox3
0384                 text: monStunValue >= 3? 1 : 0
0385                 color: getMonColor(monStunValue, 3)
0386                 borderColor: "#ff000000"
0387                 visible: root.page == 0? true : false
0388                 readOnly: MonStunBox3.readOnly
0389                 tooltip:""
0390                 Layout.fillHeight: true
0391                 Layout.preferredWidth: 18*root.realscale
0392                 onClicked: {
0393                     if (monStunValue == 3) {
0394                         monStunValue = 2
0395                     } else {
0396                         monStunValue = 3
0397                     }
0398                 }
0399             }
0400             CheckBoxField {//MonStunBox4
0401                 field: MonStunBox4
0402                 text: monStunValue >= 4? 1 : 0
0403                 color: getMonColor(monStunValue, 4)
0404                 borderColor: "#ff000000"
0405                 visible: root.page == 0? true : false
0406                 readOnly: MonStunBox4.readOnly
0407                 tooltip:""
0408                 Layout.fillHeight: true
0409                 Layout.preferredWidth: 18*root.realscale
0410                 onClicked: {
0411                     if (monStunValue == 4) {
0412                         monStunValue = 3
0413                     } else {
0414                         monStunValue = 4
0415                     }
0416                 }
0417             }
0418             CheckBoxField {//MonStunBox5
0419                 field: MonStunBox5
0420                 text: monStunValue >= 5? 1 : 0
0421                 color: getMonColor(monStunValue, 5)
0422                 borderColor: "#ff000000"
0423                 visible: root.page == 0? true : false
0424                 readOnly: MonStunBox5.readOnly
0425                 tooltip:""
0426                 Layout.fillHeight: true
0427                 Layout.preferredWidth: 18*root.realscale
0428                 onClicked: {
0429                     if (monStunValue == 5) {
0430                         monStunValue = 4
0431                     } else {
0432                         monStunValue = 5
0433                     }
0434                 }
0435             }
0436             CheckBoxField {//MonStunBox6
0437                 field: MonStunBox6
0438                 text: monStunValue >= 6? 1 : 0
0439                 color: getMonColor(monStunValue, 6)
0440                 borderColor: "#ff000000"
0441                 visible: root.page == 0? true : false
0442                 readOnly: MonStunBox6.readOnly
0443                 tooltip:""
0444                 Layout.fillHeight: true
0445                 Layout.preferredWidth: 18*root.realscale
0446                 onClicked: {
0447                     if (monStunValue == 6) {
0448                         monStunValue = 5
0449                     } else {
0450                         monStunValue = 6
0451                     }
0452                 }
0453             }
0454             CheckBoxField {//MonStunBox7
0455                 field: MonStunBox7
0456                 text: monStunValue >= 7? 1 : 0
0457                 color: getMonColor(monStunValue, 7)
0458                 borderColor: "#ff000000"
0459                 visible: root.page == 0? true : false
0460                 readOnly: MonStunBox7.readOnly
0461                 tooltip:""
0462                 Layout.fillHeight: true
0463                 Layout.preferredWidth: 18*root.realscale
0464                 onClicked: {
0465                     if (monStunValue == 7) {
0466                         monStunValue = 6
0467                     } else {
0468                         monStunValue = 7
0469                     }
0470                 }
0471             }
0472             CheckBoxField {//MonStunBox8
0473                 field: MonStunBox8
0474                 text: monStunValue >= 8? 1 : 0
0475                 color: getMonColor(monStunValue, 8)
0476                 borderColor: "#ff000000"
0477                 visible: root.page == 0? true : false
0478                 readOnly: MonStunBox8.readOnly
0479                 tooltip:""
0480                 Layout.fillHeight: true
0481                 Layout.preferredWidth: 18*root.realscale
0482                 onClicked: {
0483                     if (monStunValue == 8) {
0484                         monStunValue = 7
0485                     } else {
0486                         monStunValue = 8
0487                     }
0488                 }
0489             }
0490             CheckBoxField {//MonStunBox9
0491                 field: MonStunBox9
0492                 text: monStunValue >= 9? 1 : 0
0493                 color: getMonColor(monStunValue, 9)
0494                 borderColor: "#ff000000"
0495                 visible: root.page == 0? true : false
0496                 readOnly: MonStunBox9.readOnly
0497                 tooltip:""
0498                 Layout.fillHeight: true
0499                 Layout.preferredWidth: 18*root.realscale
0500                 onClicked: {
0501                     if (monStunValue == 9) {
0502                         monStunValue = 8
0503                     } else {
0504                         monStunValue = 9
0505                     }
0506                 }
0507             }
0508             CheckBoxField {//MonStunBox10
0509                 field: MonStunBox10
0510                 text: monStunValue >= 10? 1 : 0
0511                 color: getMonColor(monStunValue, 10)
0512                 borderColor: "#ff000000"
0513                 visible: root.page == 0? true : false
0514                 readOnly: MonStunBox10.readOnly
0515                 tooltip:""
0516                 Layout.fillHeight: true
0517                 Layout.preferredWidth: 18*root.realscale
0518                 onClicked: {
0519                     if (monStunValue == 10) {
0520                         monStunValue = 9
0521                     } else {
0522                         monStunValue = 10
0523                     }
0524                 }
0525             }
0526         }
0527     }
0528 
0529     Table{//MonPhysTbl
0530         id: _id_4list
0531         field: id_4
0532         x:25*root.realscale
0533         y:76*root.realscale
0534         width:180*root.realscale
0535         height:19*root.realscale
0536         visible: root.page == 0? true : false
0537         maxRow:1
0538         model: id_4.model
0539         delegate: RowLayout {
0540             height: _id_4list.height/_id_4list.maxRow
0541             width:  _id_4list.width
0542             spacing:0
0543             CheckBoxField {//MonPhysBox1
0544                 field: MonPhysBox1
0545                 text: monPhysValue >= 1? 1 : 0
0546                 color: getMonColor(monPhysValue, 1)
0547                 borderColor: "#ff000000"
0548                 visible: root.page == 0? true : false
0549                 readOnly: MonPhysBox1.readOnly
0550                 tooltip:""
0551                 Layout.fillHeight: true
0552                 Layout.preferredWidth: 18*root.realscale
0553                 onClicked: {
0554                     if (monPhysValue == 1) {
0555                         monPhysValue = 0
0556                     } else {
0557                         monPhysValue = 1
0558                     }
0559                 }
0560             }
0561             CheckBoxField {//MonPhysBox2
0562                 field: MonPhysBox2
0563                 text: monPhysValue >= 2? 1 : 0
0564                 color: getMonColor(monPhysValue, 2)
0565                 borderColor: "#ff000000"
0566                 visible: root.page == 0? true : false
0567                 readOnly: MonPhysBox2.readOnly
0568                 tooltip:""
0569                 Layout.fillHeight: true
0570                 Layout.preferredWidth: 18*root.realscale
0571                 onClicked: {
0572                     if (monPhysValue == 2) {
0573                         monPhysValue = 1
0574                     } else {
0575                         monPhysValue = 2
0576                     }
0577                 }
0578             }
0579             CheckBoxField {//MonPhysBox3
0580                 field: MonPhysBox3
0581                 text: monPhysValue >= 3? 1 : 0
0582                 color: getMonColor(monPhysValue, 3)
0583                 borderColor: "#ff000000"
0584                 visible: root.page == 0? true : false
0585                 readOnly: MonPhysBox3.readOnly
0586                 tooltip:""
0587                 Layout.fillHeight: true
0588                 Layout.preferredWidth: 18*root.realscale
0589                 onClicked: {
0590                     if (monPhysValue == 3) {
0591                         monPhysValue = 2
0592                     } else {
0593                         monPhysValue = 3
0594                     }
0595                 }
0596             }
0597             CheckBoxField {//MonPhysBox4
0598                 field: MonPhysBox4
0599                 text: monPhysValue >= 4? 1 : 0
0600                 color: getMonColor(monPhysValue, 4)
0601                 borderColor: "#ff000000"
0602                 visible: root.page == 0? true : false
0603                 readOnly: MonPhysBox4.readOnly
0604                 tooltip:""
0605                 Layout.fillHeight: true
0606                 Layout.preferredWidth: 18*root.realscale
0607                 onClicked: {
0608                     if (monPhysValue == 4) {
0609                         monPhysValue = 3
0610                     } else {
0611                         monPhysValue = 4
0612                     }
0613                 }
0614             }
0615             CheckBoxField {//MonPhysBox5
0616                 field: MonPhysBox5
0617                 text: monPhysValue >= 5? 1 : 0
0618                 color: getMonColor(monPhysValue, 5)
0619                 borderColor: "#ff000000"
0620                 visible: root.page == 0? true : false
0621                 readOnly: MonPhysBox5.readOnly
0622                 tooltip:""
0623                 Layout.fillHeight: true
0624                 Layout.preferredWidth: 18*root.realscale
0625                 onClicked: {
0626                     if (monPhysValue == 5) {
0627                         monPhysValue = 4
0628                     } else {
0629                         monPhysValue = 5
0630                     }
0631                 }
0632             }
0633             CheckBoxField {//MonPhysBox6
0634                 field: MonPhysBox6
0635                 text: monPhysValue >= 6? 1 : 0
0636                 color: getMonColor(monPhysValue, 6)
0637                 borderColor: "#ff000000"
0638                 visible: root.page == 0? true : false
0639                 readOnly: MonPhysBox6.readOnly
0640                 tooltip:""
0641                 Layout.fillHeight: true
0642                 Layout.preferredWidth: 18*root.realscale
0643                 onClicked: {
0644                     if (monPhysValue == 6) {
0645                         monPhysValue = 5
0646                     } else {
0647                         monPhysValue = 6
0648                     }
0649                 }
0650             }
0651             CheckBoxField {//MonPhysBox7
0652                 field: MonPhysBox7
0653                 text: monPhysValue >= 7? 1 : 0
0654                 color: getMonColor(monPhysValue, 7)
0655                 borderColor: "#ff000000"
0656                 visible: root.page == 0? true : false
0657                 readOnly: MonPhysBox7.readOnly
0658                 tooltip:""
0659                 Layout.fillHeight: true
0660                 Layout.preferredWidth: 18*root.realscale
0661                 onClicked: {
0662                     if (monPhysValue == 7) {
0663                         monPhysValue = 6
0664                     } else {
0665                         monPhysValue = 7
0666                     }
0667                 }
0668             }
0669             CheckBoxField {//MonPhysBox8
0670                 field: MonPhysBox8
0671                 text: monPhysValue >= 8? 1 : 0
0672                 color: getMonColor(monPhysValue, 8)
0673                 borderColor: "#ff000000"
0674                 visible: root.page == 0? true : false
0675                 readOnly: MonPhysBox8.readOnly
0676                 tooltip:""
0677                 Layout.fillHeight: true
0678                 Layout.preferredWidth: 18*root.realscale
0679                 onClicked: {
0680                     if (monPhysValue == 8) {
0681                         monPhysValue = 7
0682                     } else {
0683                         monPhysValue = 8
0684                     }
0685                 }
0686             }
0687             CheckBoxField {//MonPhysBox9
0688                 field: MonPhysBox9
0689                 text: monPhysValue >= 9? 1 : 0
0690                 color: getMonColor(monPhysValue, 9)
0691                 borderColor: "#ff000000"
0692                 visible: root.page == 0? true : false
0693                 readOnly: MonPhysBox9.readOnly
0694                 tooltip:""
0695                 Layout.fillHeight: true
0696                 Layout.preferredWidth: 18*root.realscale
0697                 onClicked: {
0698                     if (monPhysValue == 9) {
0699                         monPhysValue = 8
0700                     } else {
0701                         monPhysValue = 9
0702                     }
0703                 }
0704             }
0705             CheckBoxField {//MonPhysBox10
0706                 field: MonPhysBox10
0707                 text: monPhysValue >= 10? 1 : 0
0708                 color: getMonColor(monPhysValue, 10)
0709                 borderColor: "#ff000000"
0710                 visible: root.page == 0? true : false
0711                 readOnly: MonPhysBox10.readOnly
0712                 tooltip:""
0713                 Layout.fillHeight: true
0714                 Layout.preferredWidth: 18*root.realscale
0715                 onClicked: {
0716                     if (monPhysValue == 10) {
0717                         monPhysValue = 9
0718                     } else {
0719                         monPhysValue = 10
0720                     }
0721                 }
0722             }
0723         }
0724     }
0725 
0726     TextInputField {//MonDmgOvrfl
0727         id: _id_5
0728         text: id_5.value
0729         color: id_5.value == 0? "#ff000000" : "#f10d0c"
0730         backgroundColor: "#00000000"
0731         visible: root.page == 0? true : false
0732         readOnly: id_5.readOnly
0733         tooltip:""
0734         x:239*root.realscale
0735         y:83.5*root.realscale
0736         width:27*root.realscale
0737         height:26*root.realscale
0738         hAlign: TextInput.AlignHCenter
0739         vAlign: TextInput.AlignVCenter
0740         font.family:  "Sans Serif"
0741         font.bold:    false
0742         font.italic:  false
0743         font.underline: false
0744         font.pointSize: 13
0745         font.overline: false
0746         font.strikeout: false
0747         onTextChanged: {
0748             id_5.value = text
0749         }
0750     }
0751 
0752     TextInputField {//MonInitMalus
0753         id: _id_2698
0754         text: "-" + getMonMalus()
0755         color:"#ff000000"
0756         backgroundColor: "#00000000"
0757         visible: root.page == 0? true : false
0758         readOnly: id_2698.readOnly
0759         tooltip:""
0760         x:80*root.realscale
0761         y:98*root.realscale
0762         width:19.5*root.realscale
0763         height:12*root.realscale
0764         hAlign: TextInput.AlignHCenter
0765         vAlign: TextInput.AlignVCenter
0766         font.family:  "Sans Serif"
0767         font.bold:    false
0768         font.italic:  false
0769         font.underline: false
0770         font.pointSize: 7
0771         font.overline: false
0772         font.strikeout: false
0773         onTextChanged: {
0774             id_2698.value = text
0775         }
0776     }
0777     TextInputField {//MonTrgMalus
0778         id: _id_2699
0779         text: "+" + getMonMalus()
0780         color:"#ff000000"
0781         backgroundColor: "#00000000"
0782         visible: root.page == 0? true : false
0783         readOnly: id_2699.readOnly
0784         tooltip:""
0785         x:185*root.realscale
0786         y:98*root.realscale
0787         width:19.5*root.realscale
0788         height:12*root.realscale
0789         hAlign: TextInput.AlignHCenter
0790         vAlign: TextInput.AlignVCenter
0791         font.family:  "Sans Serif"
0792         font.bold:    false
0793         font.italic:  false
0794         font.underline: false
0795         font.pointSize: 7
0796         font.overline: false
0797         font.strikeout: false
0798         onTextChanged: {
0799             id_2699.value = text
0800         }
0801     }
0802 
0803     // ///
0804     // ATTRIBUTES
0805     Table{//AttTbl
0806         id: _id_33list
0807         field: id_33
0808         x:8*root.realscale
0809         y:157.5*root.realscale
0810         width:172*root.realscale
0811         height:185.5*root.realscale
0812         visible: root.page == 0? true : false
0813         maxRow:6
0814         model: id_33.model
0815         delegate: RowLayout {
0816             height: _id_33list.height/_id_33list.maxRow
0817             width:  _id_33list.width
0818             spacing:0
0819             property int rowindex: index + 1
0820             DiceButton {//AttBtn
0821                 command: AttBtn.value
0822                 text: ""
0823                 pressedColor: "#de2121"
0824                 color: "#00000000"
0825                 backgroundColor: "#00000000"
0826                 textColor: "#ff000000"
0827                 visible: root.page == 0? true : false
0828                 readOnly: AttBtn.readOnly
0829                 tooltip:""
0830                 Layout.fillHeight: true
0831                 Layout.preferredWidth: 75.25*root.realscale
0832                 hAlign: TextInput.AlignHCenter
0833                 vAlign: TextInput.AlignVCenter
0834                 font.family:  "Sans Serif"
0835                 font.bold:    false
0836                 font.italic:  false
0837                 font.underline: false
0838                 font.pointSize: 13
0839                 font.overline: false
0840                 font.strikeout: false
0841                 onClicked: {
0842                     selectField = rowindex
0843                     selectValue = AttNow.value*1
0844                     selectTrgMod = 0
0845                 }
0846             }
0847             TextInputField {//AttNat
0848                 text: AttNat.value
0849                 color:"#ff000000"
0850                 backgroundColor: "#00000000"
0851                 visible: root.page == 0? true : false
0852                 readOnly: AttNat.readOnly
0853                 tooltip:""
0854                 Layout.fillHeight: true
0855                 Layout.preferredWidth: 30.75*root.realscale
0856                 hAlign: TextInput.AlignHCenter
0857                 vAlign: TextInput.AlignVCenter
0858                 font.family:  "Sans Serif"
0859                 font.bold:    false
0860                 font.italic:  false
0861                 font.underline: false
0862                 font.pointSize: 13
0863                 font.overline: false
0864                 font.strikeout: false
0865                 onTextChanged: {
0866                     AttNat.value = text
0867                 }
0868             }
0869             TextInputField {//AttMod
0870                 text: AttMod.value
0871                 color:"#ff000000"
0872                 backgroundColor: "#00000000"
0873                 visible: root.page == 0? true : false
0874                 readOnly: AttMod.readOnly
0875                 tooltip:""
0876                 Layout.fillHeight: true
0877                 Layout.preferredWidth: 33.25*root.realscale
0878                 hAlign: TextInput.AlignHCenter
0879                 vAlign: TextInput.AlignVCenter
0880                 font.family:  "Sans Serif"
0881                 font.bold:    false
0882                 font.italic:  false
0883                 font.underline: false
0884                 font.pointSize: 13
0885                 font.overline: false
0886                 font.strikeout: false
0887                 onTextChanged: {
0888                     AttMod.value = text
0889                 }
0890             }
0891             TextInputField {//AttNow
0892                 text: AttNow.value
0893                 color:"#ff000000"
0894                 backgroundColor: "#00000000"
0895                 visible: root.page == 0? true : false
0896                 readOnly: AttNow.readOnly
0897                 tooltip:""
0898                 Layout.fillHeight: true
0899                 Layout.preferredWidth: 32.75*root.realscale
0900                 hAlign: TextInput.AlignHCenter
0901                 vAlign: TextInput.AlignVCenter
0902                 font.family:  "Sans Serif"
0903                 font.bold:    false
0904                 font.italic:  false
0905                 font.underline: false
0906                 font.pointSize: 13
0907                 font.overline: false
0908                 font.strikeout: false
0909                 onTextChanged: {
0910                     AttNow.value = text;
0911                     resetSelect();
0912                 }
0913             }
0914         }
0915     }
0916 
0917     ImageField {//AttSel1
0918         id: _id_8
0919         source: id_8.value
0920         color: "#00000000"
0921         visible: root.page == 0 && selectField == 1? true : false
0922         readOnly: id_8.readOnly
0923         x:8*root.realscale
0924         y:157.5*root.realscale
0925         width:75.5*root.realscale
0926         height:30*root.realscale
0927     }
0928     ImageField {//AttSel2
0929         id: _id_9
0930         source: id_9.value
0931         color: "#00000000"
0932         visible: root.page == 0 && selectField == 2? true : false
0933         readOnly: id_9.readOnly
0934         x:8*root.realscale
0935         y:188*root.realscale
0936         width:75.5*root.realscale
0937         height:30*root.realscale
0938     }
0939     ImageField {//AttSel3
0940         id: _id_10
0941         source: id_10.value
0942         color: "#00000000"
0943         visible: root.page == 0 && selectField == 3? true : false
0944         readOnly: id_10.readOnly
0945         x:8*root.realscale
0946         y:219*root.realscale
0947         width:75.5*root.realscale
0948         height:30*root.realscale
0949     }
0950     ImageField {//AttSel4
0951         id: _id_11
0952         source: id_11.value
0953         color: "#00000000"
0954         visible: root.page == 0 && selectField == 4? true : false
0955         readOnly: id_11.readOnly
0956         x:8*root.realscale
0957         y:250*root.realscale
0958         width:75.5*root.realscale
0959         height:30*root.realscale
0960     }
0961     ImageField {//AttSel5
0962         id: _id_12
0963         source: id_12.value
0964         color: "#00000000"
0965         visible: root.page == 0 && selectField == 5? true : false
0966         readOnly: id_12.readOnly
0967         x:8*root.realscale
0968         y:281*root.realscale
0969         width:75.5*root.realscale
0970         height:30*root.realscale
0971     }
0972     ImageField {//AttSel6
0973         id: _id_13
0974         source: id_13.value
0975         color: "#00000000"
0976         visible: root.page == 0 && selectField == 6? true : false
0977         readOnly: id_13.readOnly
0978         x:8*root.realscale
0979         y:312*root.realscale
0980         width:75.5*root.realscale
0981         height:30*root.realscale
0982     }
0983 
0984     // ///
0985     // SKILLS
0986     ImageField {//SkillSel1
0987         id: _id_214
0988         source: id_214.value
0989         color: "#00000000"
0990         visible: root.page == 0 && selectField == 11? true : false
0991         readOnly: id_214.readOnly
0992         x:194*root.realscale
0993         y:157.5*root.realscale
0994         width:65.5*root.realscale
0995         height:30*root.realscale
0996     }
0997     ImageField {//SkillSel2
0998         id: _id_21
0999         source: id_21.value
1000         color: "#00000000"
1001         visible: root.page == 0 && selectField == 12? true : false
1002         readOnly: id_21.readOnly
1003         x:194*root.realscale
1004         y:188*root.realscale
1005         width:65.5*root.realscale
1006         height:30*root.realscale
1007     }
1008     ImageField {//SkillSel3
1009         id: _id_22
1010         source: id_22.value
1011         color: "#00000000"
1012         visible: root.page == 0 && selectField == 13? true : false
1013         readOnly: id_22.readOnly
1014         x:194*root.realscale
1015         y:219*root.realscale
1016         width:65.5*root.realscale
1017         height:30*root.realscale
1018     }
1019     ImageField {//SkillSel4
1020         id: _id_23
1021         source: id_23.value
1022         color: "#00000000"
1023         visible: root.page == 0 && selectField == 14? true : false
1024         readOnly: id_23.readOnly
1025         x:194*root.realscale
1026         y:250*root.realscale
1027         width:65.5*root.realscale
1028         height:30*root.realscale
1029     }
1030     ImageField {//SkillSel5
1031         id: _id_24
1032         source: id_24.value
1033         color: "#00000000"
1034         visible: root.page == 0 && selectField == 15? true : false
1035         readOnly: id_24.readOnly
1036         x:194*root.realscale
1037         y:281*root.realscale
1038         width:65.5*root.realscale
1039         height:30*root.realscale
1040     }
1041     ImageField {//SkillSel6
1042         id: _id_25
1043         source: id_25.value
1044         color: "#00000000"
1045         visible: root.page == 0 && selectField == 16? true : false
1046         readOnly: id_25.readOnly
1047         x:194*root.realscale
1048         y:312*root.realscale
1049         width:65.5*root.realscale
1050         height:30*root.realscale
1051     }
1052 
1053     TextInputField {//SkillName1
1054         id: _id_14
1055         text: id_14.value
1056         color: getEditNameColor(skillEdit)
1057         backgroundColor: getEditNameBgcolor(skillEdit, 1)
1058         visible: root.page == 0 && getEditNameVisible(skillEdit, 1)? true : false
1059         readOnly: getEditNameReadonly(skillEdit, 1)
1060         tooltip:""
1061         x:194*root.realscale
1062         y:157.5*root.realscale
1063         z: getEditNameZ(skillEdit)
1064         width:65.5*root.realscale
1065         height:30*root.realscale
1066         hAlign: TextInput.AlignLeft
1067         vAlign: TextInput.AlignVCenter
1068         font.family:  "Sans Serif"
1069         font.bold:    false
1070         font.italic:  false
1071         font.underline: false
1072         font.pointSize: 9
1073         font.overline: false
1074         font.strikeout: false
1075         onTextChanged: {
1076             id_14.value = text
1077         }
1078         onEditingFinished: {
1079             skillEdit = 0    
1080         }
1081     }
1082     TextInputField {//SkillName2
1083         id: _id_15
1084         text: id_15.value
1085         color: getEditNameColor(skillEdit)
1086         backgroundColor: getEditNameBgcolor(skillEdit, 2)
1087         visible: root.page == 0 && getEditNameVisible(skillEdit, 2)? true : false
1088         readOnly: getEditNameReadonly(skillEdit, 2)
1089         tooltip:""
1090         x:194*root.realscale
1091         y:188*root.realscale
1092         z: getEditNameZ(skillEdit)
1093         width:65.5*root.realscale
1094         height:30*root.realscale
1095         hAlign: TextInput.AlignLeft
1096         vAlign: TextInput.AlignVCenter
1097         font.family:  "Sans Serif"
1098         font.bold:    false
1099         font.italic:  false
1100         font.underline: false
1101         font.pointSize: 9
1102         font.overline: false
1103         font.strikeout: false
1104         onTextChanged: {
1105             id_15.value = text
1106         }
1107         onEditingFinished: {
1108             skillEdit = 0
1109         }
1110     }
1111     TextInputField {//SkillName3
1112         id: _id_16
1113         text: id_16.value
1114         color: getEditNameColor(skillEdit)
1115         backgroundColor: getEditNameBgcolor(skillEdit, 3)
1116         visible: root.page == 0 && getEditNameVisible(skillEdit, 3)? true : false
1117         readOnly: getEditNameReadonly(skillEdit, 3)
1118         tooltip:""
1119         x:194*root.realscale
1120         y:219*root.realscale
1121         z: getEditNameZ(skillEdit)
1122         width:65.5*root.realscale
1123         height:30*root.realscale
1124         hAlign: TextInput.AlignLeft
1125         vAlign: TextInput.AlignVCenter
1126         font.family:  "Sans Serif"
1127         font.bold:    false
1128         font.italic:  false
1129         font.underline: false
1130         font.pointSize: 9
1131         font.overline: false
1132         font.strikeout: false
1133         onTextChanged: {
1134             id_16.value = text
1135         }
1136         onEditingFinished: {
1137             skillEdit = 0    
1138         }
1139     }
1140     TextInputField {//SkillName4
1141         id: _id_17
1142         text: id_17.value
1143         color: getEditNameColor(skillEdit)
1144         backgroundColor: getEditNameBgcolor(skillEdit, 4)
1145         visible: root.page == 0 && getEditNameVisible(skillEdit, 4)? true : false
1146         readOnly: getEditNameReadonly(skillEdit, 4)
1147         tooltip:""
1148         x:194*root.realscale
1149         y:250*root.realscale
1150         z: getEditNameZ(skillEdit)
1151         width:65.5*root.realscale
1152         height:30*root.realscale
1153         hAlign: TextInput.AlignLeft
1154         vAlign: TextInput.AlignVCenter
1155         font.family:  "Sans Serif"
1156         font.bold:    false
1157         font.italic:  false
1158         font.underline: false
1159         font.pointSize: 9
1160         font.overline: false
1161         font.strikeout: false
1162         onTextChanged: {
1163             id_17.value = text
1164         }
1165         onEditingFinished: {
1166             skillEdit = 0    
1167         }
1168     }
1169     TextInputField {//SkillName5
1170         id: _id_18
1171         text: id_18.value
1172         color: getEditNameColor(skillEdit)
1173         backgroundColor: getEditNameBgcolor(skillEdit, 5)
1174         visible: root.page == 0 && getEditNameVisible(skillEdit, 5)? true : false
1175         readOnly: getEditNameReadonly(skillEdit, 5)
1176         tooltip:""
1177         x:194*root.realscale
1178         y:281*root.realscale
1179         z: getEditNameZ(skillEdit)
1180         width:65.5*root.realscale
1181         height:30*root.realscale
1182         hAlign: TextInput.AlignLeft
1183         vAlign: TextInput.AlignVCenter
1184         font.family:  "Sans Serif"
1185         font.bold:    false
1186         font.italic:  false
1187         font.underline: false
1188         font.pointSize: 9
1189         font.overline: false
1190         font.strikeout: false
1191         onTextChanged: {
1192             id_18.value = text
1193         }
1194         onEditingFinished: {
1195             skillEdit = 0
1196         }
1197     }
1198     TextInputField {//SkillName6
1199         id: _id_19
1200         text: id_19.value
1201         color: getEditNameColor(skillEdit)
1202         backgroundColor: getEditNameBgcolor(skillEdit, 6)
1203         visible: root.page == 0 && getEditNameVisible(skillEdit, 6)? true : false
1204         readOnly: getEditNameReadonly(skillEdit, 6)
1205         tooltip:""
1206         x:194*root.realscale
1207         y:312*root.realscale
1208         z: getEditNameZ(skillEdit)
1209         width:65.5*root.realscale
1210         height:30*root.realscale
1211         hAlign: TextInput.AlignLeft
1212         vAlign: TextInput.AlignVCenter
1213         font.family:  "Sans Serif"
1214         font.bold:    false
1215         font.italic:  false
1216         font.underline: false
1217         font.pointSize: 9
1218         font.overline: false
1219         font.strikeout: false
1220         onTextChanged: {
1221             id_19.value = text
1222         }
1223         onEditingFinished: {
1224             skillEdit = 0
1225         }
1226     }
1227 
1228     Table{//SkillTbl
1229         id: _id_45list
1230         field: id_45
1231         x:184*root.realscale
1232         y:157.5*root.realscale
1233         width:205*root.realscale
1234         height:185*root.realscale
1235         visible: root.page == 0 && getEditTblVisible(skillEdit)? true : false
1236         maxRow:6
1237         model: id_45.model
1238         delegate: RowLayout {
1239             height: _id_45list.height/_id_45list.maxRow
1240             width:  _id_45list.width
1241             spacing:0
1242             property int rowindex: index + 1
1243             DiceButton {//SkillEdit
1244                 command: SkillEdit.value
1245                 text: "@"
1246                 pressedColor: getEditBtnPrsColor()
1247                 color: getEditBtnColor()
1248                 backgroundColor: getEditBtnBgColor()
1249                 textColor: getEditBtnTxtColor()
1250                 visible: root.page == 0? true : false
1251                 readOnly: SkillEdit.readOnly
1252                 tooltip:""
1253                 Layout.fillHeight: true
1254                 Layout.preferredWidth: 9.5*root.realscale
1255                 hAlign: TextInput.AlignHCenter
1256                 vAlign: TextInput.AlignVCenter
1257                 font.family:  "Webdings"
1258                 font.bold:    false
1259                 font.italic:  false
1260                 font.underline: false
1261                 font.pointSize: 9
1262                 font.overline: false
1263                 font.strikeout: false
1264                 onClicked: {
1265                     resetSelect();
1266                     skillEdit = rowindex
1267                 }
1268             }
1269             DiceButton {//SkillBtn
1270                 command: SkillBtn.value
1271                 text: ""
1272                 pressedColor: "#de2121"
1273                 color: "#00000000"
1274                 backgroundColor: "#00000000"
1275                 textColor: "#ff000000"
1276                 visible: root.page == 0? true : false
1277                 readOnly: SkillBtn.readOnly
1278                 tooltip:""
1279                 Layout.fillHeight: true
1280                 Layout.preferredWidth: 65.5*root.realscale
1281                 hAlign: TextInput.AlignHCenter
1282                 vAlign: TextInput.AlignVCenter
1283                 font.family:  "Sans Serif"
1284                 font.bold:    false
1285                 font.italic:  false
1286                 font.underline: false
1287                 font.pointSize: 13
1288                 font.overline: false
1289                 font.strikeout: false
1290                 onClicked: {
1291                     selectField = rowindex + 10
1292                     selectValue = SkillNow.value*1
1293                     selectTrgMod = SkillTrgMod.value*1
1294                 }
1295             }
1296             TextInputField {//SkillAtt
1297                 text: SkillAtt.value
1298                 color:"#ff000000"
1299                 backgroundColor: "#00000000"
1300                 visible: root.page == 0? true : false
1301                 readOnly: SkillAtt.readOnly
1302                 tooltip:""
1303                 Layout.fillHeight: true
1304                 Layout.preferredWidth: 32.5*root.realscale
1305                 hAlign: TextInput.AlignHCenter
1306                 vAlign: TextInput.AlignVCenter
1307                 font.family:  "Sans Serif"
1308                 font.bold:    false
1309                 font.italic:  false
1310                 font.underline: false
1311                 font.pointSize: 13
1312                 font.overline: false
1313                 font.strikeout: false
1314                 onTextChanged: {
1315                     SkillAtt.value = text
1316                 }
1317             }
1318             TextInputField {//SkillRat
1319                 text: SkillRat.value
1320                 color:"#ff000000"
1321                 backgroundColor: "#00000000"
1322                 visible: root.page == 0? true : false
1323                 readOnly: SkillRat.readOnly
1324                 tooltip:""
1325                 Layout.fillHeight: true
1326                 Layout.preferredWidth: 32.5*root.realscale
1327                 hAlign: TextInput.AlignHCenter
1328                 vAlign: TextInput.AlignVCenter
1329                 font.family:  "Sans Serif"
1330                 font.bold:    false
1331                 font.italic:  false
1332                 font.underline: false
1333                 font.pointSize: 13
1334                 font.overline: false
1335                 font.strikeout: false
1336                 onTextChanged: {
1337                     SkillRat.value = text
1338                 }
1339             }
1340             TextInputField {//SkillNow
1341                 text: SkillAtt.value*1 + SkillRat.value*1
1342                 color:"#ff000000"
1343                 backgroundColor: "#00000000"
1344                 visible: root.page == 0? true : false
1345                 readOnly: SkillNow.readOnly
1346                 tooltip:""
1347                 Layout.fillHeight: true
1348                 Layout.preferredWidth: 32.5*root.realscale
1349                 hAlign: TextInput.AlignHCenter
1350                 vAlign: TextInput.AlignVCenter
1351                 font.family:  "Sans Serif"
1352                 font.bold:    false
1353                 font.italic:  false
1354                 font.underline: false
1355                 font.pointSize: 13
1356                 font.overline: false
1357                 font.strikeout: false
1358                 onTextChanged: {
1359                     SkillNow.value = text
1360                     resetSelect();
1361                 }
1362             }
1363             TextInputField {//SkillTrgMod
1364                 text: SkillTrgMod.value
1365                 color:"#ff000000"
1366                 backgroundColor: "#00000000"
1367                 visible: root.page == 0? true : false
1368                 readOnly: SkillTrgMod.readOnly
1369                 tooltip:""
1370                 Layout.fillHeight: true
1371                 Layout.preferredWidth: 32.5*root.realscale
1372                 hAlign: TextInput.AlignHCenter
1373                 vAlign: TextInput.AlignVCenter
1374                 font.family:  "Sans Serif"
1375                 font.bold:    false
1376                 font.italic:  false
1377                 font.underline: false
1378                 font.pointSize: 13
1379                 font.overline: false
1380                 font.strikeout: false
1381                 onTextChanged: {
1382                     SkillTrgMod.value = text
1383                     resetSelect();
1384                 }
1385             }
1386         }
1387     }
1388 
1389     // ///
1390     // REACTION
1391     ImageField {//ReactSel1
1392         id: _id_118
1393         source: id_118.value
1394         color: "#00000000"
1395         visible: root.page == 0 && selectField == 21? true : false
1396         readOnly: id_118.readOnly
1397         x:17.5*root.realscale
1398         y:389*root.realscale
1399         width:65.5*root.realscale
1400         height:30*root.realscale
1401     }
1402     ImageField {//ReactSel2
1403         id: _id_119
1404         source: id_119.value
1405         color: "#00000000"
1406         visible: root.page == 0 && selectField == 22? true : false
1407         readOnly: id_119.readOnly
1408         x:17.5*root.realscale
1409         y:420.5*root.realscale
1410         width:65.5*root.realscale
1411         height:30*root.realscale
1412     }
1413 
1414     TextInputField {//ReactName1
1415         id: _id_116
1416         text: id_116.value
1417         color: getEditNameColor(reactEdit)
1418         backgroundColor: getEditNameBgcolor(reactEdit, 1)
1419         visible: getEditNameVisible(reactEdit, 1) && root.page == 0? true : false
1420         readOnly: getEditNameReadonly(reactEdit, 1)
1421         tooltip:""
1422         x:17.5*root.realscale
1423         y:389*root.realscale
1424         z: getEditNameZ(reactEdit)
1425         width:65.5*root.realscale
1426         height:30*root.realscale
1427         hAlign: TextInput.AlignLeft
1428         vAlign: TextInput.AlignVCenter
1429         font.family:  "Sans Serif"
1430         font.bold:    false
1431         font.italic:  false
1432         font.underline: false
1433         font.pointSize: 9
1434         font.overline: false
1435         font.strikeout: false
1436         onTextChanged: {
1437             id_116.value = text
1438         }
1439         onEditingFinished: {
1440             reactEdit = 0
1441         }
1442     }
1443     TextInputField {//ReactName2
1444         id: _id_117
1445         text: id_117.value
1446         color: getEditNameColor(reactEdit)
1447         backgroundColor: getEditNameBgcolor(reactEdit, 2)
1448         visible: getEditNameVisible(reactEdit, 2) && root.page == 0? true : false
1449         readOnly: getEditNameReadonly(reactEdit, 2)
1450         tooltip:""
1451         x:17.5*root.realscale
1452         y:420.5*root.realscale
1453         z: getEditNameZ(reactEdit)
1454         width:65.5*root.realscale
1455         height:30*root.realscale
1456         hAlign: TextInput.AlignLeft
1457         vAlign: TextInput.AlignVCenter
1458         font.family:  "Sans Serif"
1459         font.bold:    false
1460         font.italic:  false
1461         font.underline: false
1462         font.pointSize: 9
1463         font.overline: false
1464         font.strikeout: false
1465         onTextChanged: {
1466             id_117.value = text
1467         }
1468         onEditingFinished: {
1469             reactEdit = 0
1470         }
1471     }
1472 
1473     Table{//ReactTbl
1474         id: _id_26list
1475         field: id_26
1476         x:8*root.realscale
1477         y:389*root.realscale
1478         width:171.5*root.realscale
1479         height:63.5*root.realscale
1480         visible: getEditTblVisible(reactEdit) && root.page == 0? true : false
1481         maxRow:2
1482         model: id_26.model
1483         delegate: RowLayout {
1484             height: _id_26list.height/_id_26list.maxRow
1485             width:  _id_26list.width
1486             spacing:0
1487             property int rowindex: index + 1
1488             DiceButton {//ReactEdit
1489                 command: ReactEdit.value
1490                 text: "@"
1491                 pressedColor: getEditBtnPrsColor()
1492                 color: getEditBtnColor()
1493                 backgroundColor: getEditBtnBgColor()
1494                 textColor: getEditBtnTxtColor()
1495                 visible: root.page == 0? true : false
1496                 readOnly: ReactEdit.readOnly
1497                 tooltip:""
1498                 Layout.fillHeight: true
1499                 Layout.preferredWidth: 9.5*root.realscale
1500                 hAlign: TextInput.AlignHCenter
1501                 vAlign: TextInput.AlignVCenter
1502                 font.family:  "Webdings"
1503                 font.bold:    false
1504                 font.italic:  false
1505                 font.underline: false
1506                 font.pointSize: 9
1507                 font.overline: false
1508                 font.strikeout: false
1509                 onClicked: {
1510                     resetSelect();
1511                     reactEdit = rowindex
1512                 }
1513             }
1514             DiceButton {//ReactBtn
1515                 command: ReactBtn.value
1516                 text: ""
1517                 pressedColor: "#de2121"
1518                 color: "#00000000"
1519                 backgroundColor: "#00000000"
1520                 textColor: "#ff000000"
1521                 visible: root.page == 0? true : false
1522                 readOnly: ReactBtn.readOnly
1523                 tooltip:""
1524                 Layout.fillHeight: true
1525                 Layout.preferredWidth: 65.5*root.realscale
1526                 hAlign: TextInput.AlignHCenter
1527                 vAlign: TextInput.AlignVCenter
1528                 font.family:  "Sans Serif"
1529                 font.bold:    false
1530                 font.italic:  false
1531                 font.underline: false
1532                 font.pointSize: 13
1533                 font.overline: false
1534                 font.strikeout: false
1535                 onClicked: {
1536                     selectField = rowindex + 20
1537                     selectValue = ReactNow.value
1538                 }
1539             }
1540             TextInputField {//ReactNat
1541                 text: ReactNat.value
1542                 color:"#ff000000"
1543                 backgroundColor: "#00000000"
1544                 visible: root.page == 0? true : false
1545                 readOnly: ReactNat.readOnly
1546                 tooltip:""
1547                 Layout.fillHeight: true
1548                 Layout.preferredWidth: 32*root.realscale
1549                 hAlign: TextInput.AlignHCenter
1550                 vAlign: TextInput.AlignVCenter
1551                 font.family:  "Sans Serif"
1552                 font.bold:    false
1553                 font.italic:  false
1554                 font.underline: false
1555                 font.pointSize: 13
1556                 font.overline: false
1557                 font.strikeout: false
1558                 onTextChanged: {
1559                     ReactNat.value = text
1560                 }
1561             }
1562             TextInputField {//ReactMod
1563                 text: ReactMod.value
1564                 color:"#ff000000"
1565                 backgroundColor: "#00000000"
1566                 visible: root.page == 0? true : false
1567                 readOnly: ReactMod.readOnly
1568                 tooltip:""
1569                 Layout.fillHeight: true
1570                 Layout.preferredWidth: 32*root.realscale
1571                 hAlign: TextInput.AlignHCenter
1572                 vAlign: TextInput.AlignVCenter
1573                 font.family:  "Sans Serif"
1574                 font.bold:    false
1575                 font.italic:  false
1576                 font.underline: false
1577                 font.pointSize: 13
1578                 font.overline: false
1579                 font.strikeout: false
1580                 onTextChanged: {
1581                     ReactMod.value = text
1582                 }
1583             }
1584             TextInputField {//ReactNow
1585                 text: ReactNow.value
1586                 color:"#ff000000"
1587                 backgroundColor: "#00000000"
1588                 visible: root.page == 0? true : false
1589                 readOnly: ReactNow.readOnly
1590                 tooltip:""
1591                 Layout.fillHeight: true
1592                 Layout.preferredWidth: 32*root.realscale
1593                 hAlign: TextInput.AlignHCenter
1594                 vAlign: TextInput.AlignVCenter
1595                 font.family:  "Sans Serif"
1596                 font.bold:    false
1597                 font.italic:  false
1598                 font.underline: false
1599                 font.pointSize: 13
1600                 font.overline: false
1601                 font.strikeout: false
1602                 onTextChanged: {
1603                     ReactNow.value = text
1604                     resetSelect();
1605                 }
1606             }
1607         }
1608     }
1609 
1610     // ///
1611     // POOLS
1612     Table{//PoolTbl
1613         id: _id_122list
1614         field: id_122
1615         x:183*root.realscale
1616         y:389*root.realscale
1617         width:206*root.realscale
1618         height:63.5*root.realscale
1619         visible: root.page == 0? true : false
1620         maxRow:2
1621         model: id_122.model
1622         delegate: RowLayout {
1623             height: _id_122list.height/_id_122list.maxRow
1624             width:  _id_122list.width
1625             spacing:0
1626             property int rowindex: index + 1
1627             function getUse(rowID) {
1628                 switch (rowID) {
1629                     case 1: return id_124.value;  // PoolUse1
1630                     case 2: return id_126.value;  // PoolUse2
1631                  }
1632             }
1633 
1634             function setUse(rowID, newValue) {
1635                 if (!checkValidityUseValue(rowID, newValue)) return;
1636                 switch (rowID) {
1637                     case 1: id_124.value = newValue;  // PoolUse1
1638                     break;
1639                     case 2: id_126.value = newValue;  // PoolUse2
1640                     break;
1641                  }
1642             }
1643 
1644             function checkValidityUseValue(rowID, myValue) {
1645                 var tmpValue = myValue*1
1646                 if (!Number.isInteger(tmpValue)) return false;
1647                 if (tmpValue < 0) return false;
1648                 if (tmpValue > (PoolSum.value*1 - PoolUsed.value*1)) return false;
1649                 return true;
1650             }
1651 
1652             function getUsed(rowID) {
1653                 switch (rowID) {
1654                    case 1: return id_125.value;  // PoolUsed1
1655                    case 2: return id_127.value;  // PoolUsed2
1656                 }
1657             }
1658             function setUsed(rowID, newValue) {
1659                 switch (rowID) {
1660                     case 1: id_125.value = newValue;  // PoolUsed1
1661                     break;
1662                     case 2: id_127.value = newValue;  // PoolUsed2
1663                     break;
1664                  }
1665             }
1666             function getUseColor(rowID, displayedValue) {
1667                 if (checkValidityUseValue(rowID, displayedValue)) {
1668                     return "#ff000000";
1669                 } else {
1670                     return "#ffc21d8e";
1671                 }
1672             }
1673             function getUseDefaultValue(myValue) {
1674                 var tmpValue;
1675                 if (!Number.isInteger(myValue)) tmpValue = myValue.replace(/\D/g,'');
1676                 if (!Number.isInteger(myValue)) return 0;
1677                 tmpValue = tmpValue*1;
1678                 if (tmpValue < 0) return tmpValue*-1;
1679                 return (PoolSum.value*1 - PoolUsed.value*1);
1680             }
1681 
1682             TextInputField {//PoolName
1683                 text: PoolName.value
1684                 color:"#ff000000"
1685                 backgroundColor: "#00000000"
1686                 visible: root.page == 0? true : false
1687                 readOnly: PoolName.readOnly
1688                 tooltip:""
1689                 Layout.fillHeight: true
1690                 Layout.preferredWidth: 76*root.realscale
1691                 hAlign: TextInput.AlignLeft
1692                 vAlign: TextInput.AlignVCenter
1693                 font.family:  "Sans Serif"
1694                 font.bold:    false
1695                 font.italic:  false
1696                 font.underline: false
1697                 font.pointSize: 9
1698                 font.overline: false
1699                 font.strikeout: false
1700                 onTextChanged: {
1701                     PoolName.value = text
1702                 }
1703             }
1704 
1705             TextInputField {//PoolQty
1706                 text: PoolQty.value
1707                 color:"#ff000000"
1708                 backgroundColor: "#00000000"
1709                 visible: root.page == 0? true : false
1710                 readOnly: PoolQty.readOnly
1711                 tooltip:""
1712                 Layout.fillHeight: true
1713                 Layout.preferredWidth: 32.5*root.realscale
1714                 hAlign: TextInput.AlignHCenter
1715                 vAlign: TextInput.AlignVCenter
1716                 font.family:  "Sans Serif"
1717                 font.bold:    false
1718                 font.italic:  false
1719                 font.underline: false
1720                 font.pointSize: 13
1721                 font.overline: false
1722                 font.strikeout: false
1723                 onTextChanged: {
1724                     PoolQty.value = text
1725                 }
1726             }
1727 
1728             TextInputField {//PoolAvlb
1729                 text: PoolSum.value*1 - getUsed(rowindex) - getUse(rowindex)
1730                 color:"#ff000000"
1731                 backgroundColor: "#00000000"
1732                 visible: root.page == 0? true : false
1733                 readOnly: PoolAvlb.readOnly
1734                 tooltip:""
1735                 Layout.fillHeight: true
1736                 Layout.preferredWidth: 32.5*root.realscale
1737                 hAlign: TextInput.AlignHCenter
1738                 vAlign: TextInput.AlignVCenter
1739                 font.family:  "Sans Serif"
1740                 font.bold:    false
1741                 font.italic:  false
1742                 font.underline: false
1743                 font.pointSize: 13
1744                 font.overline: false
1745                 font.strikeout: false
1746                 onTextChanged: {
1747                     PoolAvlb.value = text
1748                 }
1749             }
1750 
1751             TextInputField {//PoolMod
1752                 text: PoolMod.value
1753                 color:"#ff000000"
1754                 backgroundColor: "#00000000"
1755                 visible: root.page == 0? true : false
1756                 readOnly: PoolMod.readOnly
1757                 tooltip:""
1758                 Layout.fillHeight: true
1759                 Layout.preferredWidth: 32.5*root.realscale
1760                 hAlign: TextInput.AlignHCenter
1761                 vAlign: TextInput.AlignVCenter
1762                 font.family:  "Sans Serif"
1763                 font.bold:    false
1764                 font.italic:  false
1765                 font.underline: false
1766                 font.pointSize: 13
1767                 font.overline: false
1768                 font.strikeout: false
1769                 onTextChanged: {
1770                     PoolMod.value = text
1771                 }
1772             }
1773 
1774             TextInputField {//PoolUse
1775                 text: PoolUse.value  // getUse(rowindex)
1776                 color: getUseColor(rowindex, PoolUse.value)  // "#ff000000"
1777                 backgroundColor: "#00000000"
1778                 visible: root.page == 0? true : false
1779                 readOnly: PoolUse.readOnly
1780                 tooltip:""
1781                 Layout.fillHeight: true
1782                 Layout.preferredWidth: 32.5*root.realscale
1783                 hAlign: TextInput.AlignHCenter
1784                 vAlign: TextInput.AlignVCenter
1785                 font.family:  "Sans Serif"
1786                 font.bold:    false
1787                 font.italic:  false
1788                 font.underline: false
1789                 font.pointSize: 13
1790                 font.overline: false
1791                 font.strikeout: false
1792                 onTextChanged: {
1793                     PoolUse.value = text
1794                     setUse(rowindex, text)
1795                 }
1796                 onEditingFinished: if (!checkValidityUseValue(rowindex, text)) PoolUse.value = getUseDefaultValue(rowindex, text)
1797             }
1798 
1799             TextInputField {//PoolUsed
1800                 text: getUsed(rowindex)
1801                 color:"#ff000000"
1802                 backgroundColor: "#00000000"
1803                 visible: false
1804                 readOnly: PoolUsed.readOnly
1805                 tooltip:""
1806                 Layout.fillHeight: true
1807                 Layout.preferredWidth: 0*root.realscale
1808                 hAlign: TextInput.AlignHCenter
1809                 vAlign: TextInput.AlignVCenter
1810                 font.family:  "Sans Serif"
1811                 font.bold:    false
1812                 font.italic:  false
1813                 font.underline: false
1814                 font.pointSize: 13
1815                 font.overline: false
1816                 font.strikeout: false
1817             }
1818 
1819             TextInputField {//PoolSum
1820                 text: PoolQty.value*1 + PoolMod.value*1
1821                 color:"#ff000000"
1822                 backgroundColor: "#00000000"
1823                 visible: false
1824                 readOnly: PoolSum.readOnly
1825                 tooltip:""
1826                 Layout.fillHeight: true
1827                 Layout.preferredWidth: 0*root.realscale
1828                 hAlign: TextInput.AlignHCenter
1829                 vAlign: TextInput.AlignVCenter
1830                 font.family:  "Sans Serif"
1831                 font.bold:    false
1832                 font.italic:  false
1833                 font.underline: false
1834                 font.pointSize: 13
1835                 font.overline: false
1836                 font.strikeout: false
1837                 onTextChanged: {
1838                     PoolSum.value = text
1839                 }
1840             }
1841         }
1842     }
1843 
1844     TextInputField {//PoolUse1
1845         id: _id_124
1846         text: id_124.value
1847         color:"#ff000000"
1848         backgroundColor: "#00000000"
1849         visible: false
1850         readOnly: id_124.readOnly
1851         tooltip:""
1852         x:388*root.realscale
1853         y:389.758*root.realscale
1854         width:3*root.realscale
1855         height:15*root.realscale
1856         hAlign: TextInput.AlignHCenter
1857         vAlign: TextInput.AlignVCenter
1858         font.family:  "Sans Serif"
1859         font.bold:    false
1860         font.italic:  false
1861         font.underline: false
1862         font.pointSize: 13
1863         font.overline: false
1864         font.strikeout: false
1865         onTextChanged: {
1866             id_124.value = text
1867         }
1868     }
1869     TextInputField {//PoolUsed1
1870         id: _id_125
1871         text: id_125.value
1872         color:"#ff000000"
1873         backgroundColor: "#00000000"
1874         visible: false
1875         readOnly: id_125.readOnly
1876         tooltip:""
1877         x:388*root.realscale
1878         y:404*root.realscale
1879         width:3*root.realscale
1880         height:15*root.realscale
1881         hAlign: TextInput.AlignHCenter
1882         vAlign: TextInput.AlignVCenter
1883         font.family:  "Sans Serif"
1884         font.bold:    false
1885         font.italic:  false
1886         font.underline: false
1887         font.pointSize: 13
1888         font.overline: false
1889         font.strikeout: false
1890         onTextChanged: {
1891             id_125.value = text
1892         }
1893     }
1894     TextInputField {//PoolUse2
1895         id: _id_126
1896         text: id_126.value
1897         color:"#ff000000"
1898         backgroundColor: "#00000000"
1899         visible: false
1900         readOnly: id_126.readOnly
1901         tooltip:""
1902         x:388*root.realscale
1903         y:419*root.realscale
1904         width:3*root.realscale
1905         height:15*root.realscale
1906         hAlign: TextInput.AlignHCenter
1907         vAlign: TextInput.AlignVCenter
1908         font.family:  "Sans Serif"
1909         font.bold:    false
1910         font.italic:  false
1911         font.underline: false
1912         font.pointSize: 13
1913         font.overline: false
1914         font.strikeout: false
1915         onTextChanged: {
1916             id_126.value = text
1917         }
1918     }
1919     TextInputField {//PoolUsed2
1920         id: _id_127
1921         text: id_127.value
1922         color:"#ff000000"
1923         backgroundColor: "#00000000"
1924         visible: false
1925         readOnly: id_127.readOnly
1926         tooltip:""
1927         x:388*root.realscale
1928         y:434*root.realscale
1929         width:3*root.realscale
1930         height:15*root.realscale
1931         hAlign: TextInput.AlignHCenter
1932         vAlign: TextInput.AlignVCenter
1933         font.family:  "Sans Serif"
1934         font.bold:    false
1935         font.italic:  false
1936         font.underline: false
1937         font.pointSize: 13
1938         font.overline: false
1939         font.strikeout: false
1940         onTextChanged: {
1941             id_127.value = text
1942         }
1943     }
1944     TextInputField {//PoolUseSum
1945         id: _id_128
1946         text: id_124.value*1 + id_125.value*1
1947         color:"#ff000000"
1948         backgroundColor: "#00000000"
1949         visible: root.page == 0? true : false
1950         readOnly: id_128.readOnly
1951         tooltip:""
1952         x:355.5*root.realscale
1953         y:347*root.realscale
1954         width:31*root.realscale
1955         height:24*root.realscale
1956         hAlign: TextInput.AlignHCenter
1957         vAlign: TextInput.AlignVCenter
1958         font.family:  "Sans Serif"
1959         font.bold:    false
1960         font.italic:  false
1961         font.underline: false
1962         font.pointSize: 13
1963         font.overline: false
1964         font.strikeout: false
1965         onTextChanged: {
1966             id_128.value = text
1967         }
1968     }
1969 
1970     // For debug purposes
1971     DiceButton {//PoolBtnReset
1972         id: _id_434
1973         command: id_434.value
1974         text: "Reset"
1975         pressedColor: "#ff000000"
1976         color: "#ffc21d8e"
1977         backgroundColor: "#ffc21d8e"
1978         textColor: "#ff000000"
1979         visible: false  // Keep hidden unless needed for debug
1980         readOnly: id_434.readOnly
1981         tooltip:""
1982         x:240.196*root.realscale
1983         y:356.863*root.realscale
1984         width:41.1765*root.realscale
1985         height:12.7451*root.realscale
1986         hAlign: TextInput.AlignHCenter
1987         vAlign: TextInput.AlignVCenter
1988         font.family:  "Sans Serif"
1989         font.bold:    false
1990         font.italic:  false
1991         font.underline: false
1992         font.pointSize: 9
1993         font.overline: false
1994         font.strikeout: false
1995         onClicked: {
1996             poolReset()
1997             resetSelect()
1998             editReset()
1999         }
2000     }
2001 
2002     Table{//InitTbl
2003         id: _id_136list
2004         field: id_136
2005         x:8*root.realscale
2006         y:500.5*root.realscale
2007         width:138*root.realscale
2008         height:30*root.realscale
2009         visible: root.page == 0? true : false
2010         maxRow:1
2011         model: id_136.model
2012         delegate: RowLayout {
2013             height: _id_136list.height/_id_136list.maxRow
2014             width:  _id_136list.width
2015             spacing:0
2016             function updateInitCmd() {
2017                 id_138.value = InitReact.value*1 - getMonMalus()
2018                 id_137.value = InitAddD6.value*1 + 1
2019             }
2020             TextInputField {//InitName
2021                 text: InitName.value
2022                 color:"#ff000000"
2023                 backgroundColor: "#00000000"
2024                 visible: root.page == 0? true : false
2025                 readOnly: InitName.readOnly
2026                 tooltip:""
2027                 Layout.fillHeight: true
2028                 Layout.preferredWidth: 75*root.realscale
2029                 hAlign: TextInput.AlignLeft
2030                 vAlign: TextInput.AlignVCenter
2031                 font.family:  "Sans Serif"
2032                 font.bold:    false
2033                 font.italic:  false
2034                 font.underline: false
2035                 font.pointSize: 9
2036                 font.overline: false
2037                 font.strikeout: false
2038                 onTextChanged: {
2039                     InitName.value = text
2040                 }
2041             }
2042             TextInputField {//InitReact
2043                 text: InitReact.value
2044                 color:"#ff000000"
2045                 backgroundColor: "#00000000"
2046                 visible: root.page == 0? true : false
2047                 readOnly: InitReact.readOnly
2048                 tooltip:""
2049                 Layout.fillHeight: true
2050                 Layout.preferredWidth: 31.5*root.realscale
2051                 hAlign: TextInput.AlignHCenter
2052                 vAlign: TextInput.AlignVCenter
2053                 font.family:  "Sans Serif"
2054                 font.bold:    false
2055                 font.italic:  false
2056                 font.underline: false
2057                 font.pointSize: 13
2058                 font.overline: false
2059                 font.strikeout: false
2060                 onTextChanged: {
2061                     InitReact.value = text
2062                     updateInitCmd()
2063                 }
2064             }
2065             TextInputField {//InitAddD6
2066                 text: InitAddD6.value
2067                 color:"#ff000000"
2068                 backgroundColor: "#00000000"
2069                 visible: root.page == 0? true : false
2070                 readOnly: InitAddD6.readOnly
2071                 tooltip:""
2072                 Layout.fillHeight: true
2073                 Layout.preferredWidth: 31.5*root.realscale
2074                 hAlign: TextInput.AlignHCenter
2075                 vAlign: TextInput.AlignVCenter
2076                 font.family:  "Sans Serif"
2077                 font.bold:    false
2078                 font.italic:  false
2079                 font.underline: false
2080                 font.pointSize: 13
2081                 font.overline: false
2082                 font.strikeout: false
2083                 onTextChanged: {
2084                     InitAddD6.value = text
2085                     updateInitCmd()
2086                 }
2087             }
2088         }
2089     }
2090 
2091     TextInputField {//InitD6
2092         id: _id_137
2093         text: id_137.value
2094         color:"#ff000000"
2095         backgroundColor: "#00000000"
2096         visible: root.page == 0? true : false
2097         readOnly: id_137.readOnly
2098         tooltip:""
2099         x:74*root.realscale
2100         y:462.5*root.realscale
2101         width:14*root.realscale
2102         height:16.5*root.realscale
2103         hAlign: TextInput.AlignRight
2104         vAlign: TextInput.AlignVCenter
2105         font.family:  "Sans Serif"
2106         font.bold:    false
2107         font.italic:  false
2108         font.underline: false
2109         font.pointSize: 13
2110         font.overline: false
2111         font.strikeout: false
2112         onTextChanged: {
2113             id_137.value = text
2114         }
2115     }
2116 
2117     TextInputField {//InitAdd
2118         id: _id_138
2119         text: id_138.value
2120         color:"#ff000000"
2121         backgroundColor: "#00000000"
2122         visible: root.page == 0? true : false
2123         readOnly: id_138.readOnly
2124         tooltip:""
2125         x:121*root.realscale
2126         y:462.5*root.realscale
2127         width:19*root.realscale
2128         height:16.5*root.realscale
2129         hAlign: TextInput.AlignLeft
2130         vAlign: TextInput.AlignVCenter
2131         font.family:  "Sans Serif"
2132         font.bold:    false
2133         font.italic:  false
2134         font.underline: false
2135         font.pointSize: 13
2136         font.overline: false
2137         font.strikeout: false
2138         onTextChanged: {
2139             id_138.value = text
2140         }
2141     }
2142 
2143     ImageField {//InitDice
2144         id: _id_373
2145         source: id_373.value
2146         color: "#00000000"
2147         visible: diceClicked != 1 && getThrInitEnabled() && root.page == 0? true : false
2148         readOnly: id_373.readOnly
2149         x:52.5*root.realscale
2150         y:460*root.realscale
2151         width:19.5*root.realscale
2152         height:19.5*root.realscale
2153     }
2154     ImageField {//InitDicePressed
2155         id: _id_374
2156         source: id_374.value
2157         color: "#00000000"
2158         visible: diceClicked == 1 && root.page == 0? true : false
2159         readOnly: id_374.readOnly
2160         x:52.5*root.realscale
2161         y:460*root.realscale
2162         width:19.5*root.realscale
2163         height:16.5*root.realscale
2164     }
2165     ImageField {//InitDiceDisabled
2166         id: _id_375
2167         source: id_375.value
2168         color: "#00000000"
2169         visible: !getThrInitEnabled() && root.page == 0? true : false
2170         readOnly: id_375.readOnly
2171         x:52.5*root.realscale
2172         y:460*root.realscale
2173         width:19.5*root.realscale
2174         height:20.5*root.realscale
2175     }
2176 
2177     DiceButton {//InitRoll
2178         id: _id_139
2179         command: id_139.value
2180         text: ""
2181         pressedColor: "#ffde2121"
2182         color: "#00000000"
2183         backgroundColor: "#00000000"
2184         textColor: "#ff000000"
2185         visible: id_138.value*1 > 0 && root.page == 0? true : false
2186         readOnly: id_139.readOnly
2187         tooltip:"Roll inititive !!!"
2188         x:50.5*root.realscale
2189         y:458*root.realscale
2190         width:95.5*root.realscale
2191         height:24*root.realscale
2192         hAlign: TextInput.AlignHCenter
2193         vAlign: TextInput.AlignVCenter
2194         font.family:  "Sans Serif"
2195         font.bold:    false
2196         font.italic:  false
2197         font.underline: false
2198         font.pointSize: 9
2199         font.overline: false
2200         font.strikeout: false
2201         onPressed: diceClicked = 1
2202         onReleased: diceClicked = 0
2203         onClicked: {
2204             rollDiceCmd(id_137.value +
2205                         "d6+" +
2206                         id_138.value,true);
2207             newTurn();
2208         }
2209     }
2210 
2211     // ///
2212     // MODIFICATORS
2213     TextInputField {//ModifBase
2214         id: _id_140
2215         text: getMonMalus() + selectTrgMod
2216         color:"#ff000000"
2217         backgroundColor: "#00000000"
2218         visible: root.page == 0? true : false
2219         readOnly: id_140.readOnly
2220         tooltip:""
2221         x:149.5*root.realscale
2222         y:500.5*root.realscale
2223         width:33*root.realscale
2224         height:30*root.realscale
2225         hAlign: TextInput.AlignHCenter
2226         vAlign: TextInput.AlignVCenter
2227         font.family:  "Sans Serif"
2228         font.bold:    false
2229         font.italic:  false
2230         font.underline: false
2231         font.pointSize: 13
2232         font.overline: false
2233         font.strikeout: false
2234         onTextChanged: {
2235             id_140.value = text
2236         }
2237     }
2238 
2239     TextInputField {//ModifPerm
2240         id: _id_141
2241         text: id_141.value
2242         color:"#ff000000"
2243         backgroundColor: "#00000000"
2244         visible: root.page == 0? true : false
2245         readOnly: id_141.readOnly
2246         tooltip:""
2247         x:182.5*root.realscale
2248         y:500.5*root.realscale
2249         width:33*root.realscale
2250         height:30*root.realscale
2251         hAlign: TextInput.AlignHCenter
2252         vAlign: TextInput.AlignVCenter
2253         font.family:  "Sans Serif"
2254         font.bold:    false
2255         font.italic:  false
2256         font.underline: false
2257         font.pointSize: 13
2258         font.overline: false
2259         font.strikeout: false
2260         onTextChanged: {
2261             id_141.value = text
2262         }
2263     }
2264     TextInputField {//ModifTmp
2265         id: _id_142
2266         text: id_142.value
2267         color:"#ff000000"
2268         backgroundColor: "#00000000"
2269         visible: root.page == 0? true : false
2270         readOnly: id_142.readOnly
2271         tooltip:""
2272         x:215*root.realscale
2273         y:500.5*root.realscale
2274         width:33*root.realscale
2275         height:30*root.realscale
2276         hAlign: TextInput.AlignHCenter
2277         vAlign: TextInput.AlignVCenter
2278         font.family:  "Sans Serif"
2279         font.bold:    false
2280         font.italic:  false
2281         font.underline: false
2282         font.pointSize: 13
2283         font.overline: false
2284         font.strikeout: false
2285         onTextChanged: {
2286             id_142.value = text
2287         }
2288     }
2289     TextInputField {//ModifSum
2290         id: _id_143
2291         text: id_140.value*1 + id_141.value*1 + id_142.value*1
2292         color:"#ff000000"
2293         backgroundColor: "#00000000"
2294         visible: root.page == 0? true : false
2295         readOnly: id_143.readOnly
2296         tooltip:""
2297         x:215*root.realscale
2298         y:460*root.realscale
2299         width:30*root.realscale
2300         height:20.5*root.realscale
2301         hAlign: TextInput.AlignHCenter
2302         vAlign: TextInput.AlignVCenter
2303         font.family:  "Sans Serif"
2304         font.bold:    false
2305         font.italic:  false
2306         font.underline: false
2307         font.pointSize: 13
2308         font.overline: false
2309         font.strikeout: false
2310         onTextChanged: {
2311             id_143.value = text
2312         }
2313     }
2314 
2315     // ///
2316     // THROW THE DICE
2317     TextInputField {//ThrManual
2318         id: _id_144
2319         text: id_144.value
2320         color:"#ff000000"
2321         backgroundColor: "#00000000"
2322         visible: root.page == 0? true : false
2323         readOnly: id_144.readOnly
2324         tooltip:""
2325         x:254*root.realscale
2326         y:500*root.realscale
2327         z:2
2328         width:30*root.realscale
2329         height:30*root.realscale
2330         hAlign: TextInput.AlignHCenter
2331         vAlign: TextInput.AlignVCenter
2332         font.family:  "Sans Serif"
2333         font.bold:    false
2334         font.italic:  false
2335         font.underline: false
2336         font.pointSize: 13
2337         font.overline: false
2338         font.strikeout: false
2339         onTextChanged: {
2340             id_144.value = text
2341             resetSelect()
2342         }
2343     }
2344 
2345     DiceButton {//ThrManualBtn
2346         id: _id_145
2347         command: id_145.value
2348         text: ""
2349         pressedColor: "#ffde2121"
2350         color: "#00000000"
2351         backgroundColor: "#00000000"
2352         textColor: "#ff000000"
2353         visible: root.page == 0? true : false
2354         readOnly: id_145.readOnly
2355         tooltip:"Set custom number of D6"
2356         x:253.5*root.realscale
2357         y:460*root.realscale
2358         z:1
2359         width:32*root.realscale
2360         height:39.5*root.realscale
2361         hAlign: TextInput.AlignHCenter
2362         vAlign: TextInput.AlignVCenter
2363         font.family:  "Sans Serif"
2364         font.bold:    false
2365         font.italic:  false
2366         font.underline: false
2367         font.pointSize: 9
2368         font.overline: false
2369         font.strikeout: false
2370         onClicked: {
2371             selectField = 31
2372             selectValue = id_144.value*1  // ThrManual
2373             selectTrgMod = 0
2374         }
2375     }
2376 
2377     ImageField {//ThrManualSel
2378         id: _id_146
2379         source: id_146.value
2380         color: "#00000000"
2381         visible: selectField == 31 && root.page == 0? true : false
2382         readOnly: id_146.readOnly
2383         x:253.5*root.realscale
2384         y:460*root.realscale
2385         width:32*root.realscale
2386         height:39.5*root.realscale
2387     }
2388 
2389     DiceButton {//ThrOpenRoll
2390         id: _id_149
2391         command: id_149.value
2392         text: ""
2393         pressedColor: "#ffde2121"
2394         color: "#00000000"
2395         backgroundColor: "#00000000"
2396         textColor: "#ff000000"
2397         visible: getThrOpenEnabled() && root.page == 0? true : false
2398         readOnly: id_149.readOnly
2399         tooltip:"Roll for highest number !!!"
2400         x:300*root.realscale
2401         y:500.5*root.realscale
2402         width:29*root.realscale
2403         height:28.5*root.realscale
2404         hAlign: TextInput.AlignHCenter
2405         vAlign: TextInput.AlignVCenter
2406         font.family:  "Sans Serif"
2407         font.bold:    false
2408         font.italic:  false
2409         font.underline: false
2410         font.pointSize: 9
2411         font.overline: false
2412         font.strikeout: false
2413         onPressed:diceClicked = 3
2414         onReleased:diceClicked = 0
2415         onClicked: {
2416             // # D6 : selectValue + PoolUseSum
2417             // Result: highest number - ModifSum
2418             rollDiceCmd((selectValue*1 + id_128.value*1) +
2419                         "d6K1+" +
2420                          id_143.value*-1,true);
2421             newThrow();
2422         }
2423     }
2424 
2425     DiceButton {//ThrTrgRoll
2426         id: _id_150
2427         command: id_150.value
2428         text: ""
2429         pressedColor: "#ffde2121"
2430         color: "#00000000"
2431         backgroundColor: "#00000000"
2432         textColor: "#ff000000"
2433         visible: getThrTrgEnabled() && root.page == 0? true : false
2434         readOnly: id_150.readOnly
2435         tooltip:"Roll against a target number !!!"
2436         x:343.5*root.realscale
2437         y:501*root.realscale
2438         width:28.5*root.realscale
2439         height:29.5*root.realscale
2440         hAlign: TextInput.AlignHCenter
2441         vAlign: TextInput.AlignVCenter
2442         font.family:  "Sans Serif"
2443         font.bold:    false
2444         font.italic:  false
2445         font.underline: false
2446         font.pointSize: 9
2447         font.overline: false
2448         font.strikeout: false
2449         onPressed: diceClicked = 3
2450         onReleased: diceClicked = 0
2451         onClicked: {
2452             rollDiceCmd(getThrD6 + "d6e6c[>" + getThrTrgAjusted + "]",true);
2453             newThrow();
2454         }
2455     }
2456 
2457     TextInputField {//ThrTrg
2458         id: _id_151
2459         text: id_151.value
2460         color:"#ff000000"
2461         backgroundColor: "#ffffffff"
2462         visible: root.page == 0? true : false
2463         readOnly: id_151.readOnly
2464         tooltip:""
2465         x:341.5*root.realscale
2466         y:469*root.realscale
2467         width:30*root.realscale
2468         height:25.5*root.realscale
2469         hAlign: TextInput.AlignHCenter
2470         vAlign: TextInput.AlignVCenter
2471         font.family:  "Sans Serif"
2472         font.bold:    false
2473         font.italic:  false
2474         font.underline: false
2475         font.pointSize: 13
2476         font.overline: false
2477         font.strikeout: false
2478         onTextChanged: {
2479             id_151.value = text
2480         }
2481     }
2482 
2483     ImageField {//ThrTrgDice
2484         id: _id_148
2485         source: id_148.value
2486         color: "#00000000"
2487         visible: diceClicked != 3 && getThrTrgEnabled() && id_151.value*1 > 0 && root.page == 0? true : false
2488         readOnly: id_148.readOnly
2489         x:343.5*root.realscale
2490         y:501*root.realscale
2491         width:28*root.realscale
2492         height:29*root.realscale
2493     }
2494     ImageField {//ThrTrgDicePressed
2495         id: _id_370
2496         source: id_370.value
2497         color: "#00000000"
2498         visible: diceClicked == 3 && root.page == 0? true : false
2499         readOnly: id_370.readOnly
2500         x:343.5*root.realscale
2501         y:501*root.realscale
2502         width:28*root.realscale
2503         height:29*root.realscale
2504     }
2505     ImageField {//ThrTrgDiceDisabled
2506         id: _id_372
2507         source: id_372.value
2508         color: "#00000000"
2509         visible: !getThrTrgEnabled() && root.page == 0? true : false
2510         readOnly: id_372.readOnly
2511         x:343.5*root.realscale
2512         y:501*root.realscale
2513         width:28*root.realscale
2514         height:29*root.realscale
2515     }
2516 
2517     ImageField {//ThrOpenDice
2518         id: _id_147
2519         source: id_147.value
2520         color: "#00000000"
2521         visible: diceClicked != 2 && getThrOpenEnabled() && root.page == 0? true : false
2522         readOnly: id_147.readOnly
2523         x:300*root.realscale
2524         y:500.5*root.realscale
2525         width:27.5*root.realscale
2526         height:29*root.realscale
2527     }
2528     ImageField {//ThrOpenDicePressed
2529         id: _id_369
2530         source: id_369.value
2531         color: "#00000000"
2532         visible: diceClicked == 2 && root.page == 0? true : false
2533         readOnly: id_369.readOnly
2534         x:300*root.realscale
2535         y:500.5*root.realscale
2536         width:27.5*root.realscale
2537         height:29*root.realscale
2538     }
2539     ImageField {//ThrOpenDiceDisabled
2540         id: _id_371
2541         source: id_371.value
2542         color: "#00000000"
2543         visible: !getThrOpenEnabled() && root.page == 0? true : false
2544         readOnly: id_371.readOnly
2545         x:300*root.realscale
2546         y:500.5*root.realscale
2547         width:27.5*root.realscale
2548         height:29*root.realscale
2549     }
2550 
2551     TextInputField {//KarmaPoolQty
2552         id: _id_1716
2553         text: id_1716.value
2554         color:"#ff000000"
2555         backgroundColor: "#00000000"
2556         visible: root.page == 0? true : false
2557         readOnly: id_1716.readOnly
2558         tooltip:""
2559         x:322*root.realscale
2560         y:48*root.realscale
2561         width:32.5*root.realscale
2562         height:30.5*root.realscale
2563         hAlign: TextInput.AlignHCenter
2564         vAlign: TextInput.AlignVCenter
2565         font.family:  "Sans Serif"
2566         font.bold:    false
2567         font.italic:  false
2568         font.underline: false
2569         font.pointSize: 13
2570         font.overline: false
2571         font.strikeout: false
2572         onTextChanged: {
2573             id_1716.value = text
2574         }
2575     }
2576     TextInputField {//KarmaPoolAvlb
2577         id: _id_1717
2578         text: id_1717.value
2579         color:"#ff000000"
2580         backgroundColor: "#00000000"
2581         visible: root.page == 0? true : false
2582         readOnly: id_1717.readOnly
2583         tooltip:""
2584         x:354*root.realscale
2585         y:48*root.realscale
2586         width:35*root.realscale
2587         height:30.5*root.realscale
2588         hAlign: TextInput.AlignHCenter
2589         vAlign: TextInput.AlignVCenter
2590         font.family:  "Sans Serif"
2591         font.bold:    false
2592         font.italic:  false
2593         font.underline: false
2594         font.pointSize: 13
2595         font.overline: false
2596         font.strikeout: false
2597         onTextChanged: {
2598             id_1717.value = text
2599         }
2600     }
2601     TextInputField {//KarmaGoodQty
2602         id: _id_1718
2603         text: id_1718.value
2604         color:"#ff000000"
2605         backgroundColor: "#00000000"
2606         visible: root.page == 0? true : false
2607         readOnly: id_1718.readOnly
2608         tooltip:""
2609         x:322*root.realscale
2610         y:78.5*root.realscale
2611         width:32.5*root.realscale
2612         height:32*root.realscale
2613         hAlign: TextInput.AlignHCenter
2614         vAlign: TextInput.AlignVCenter
2615         font.family:  "Sans Serif"
2616         font.bold:    false
2617         font.italic:  false
2618         font.underline: false
2619         font.pointSize: 13
2620         font.overline: false
2621         font.strikeout: false
2622         onTextChanged: {
2623             id_1718.value = text
2624         }
2625     }
2626     TextInputField {//KarmaGoodAvlb
2627         id: _id_1719
2628         text: id_1719.value
2629         color:"#ff000000"
2630         backgroundColor: "#00000000"
2631         visible: root.page == 0? true : false
2632         readOnly: id_1719.readOnly
2633         tooltip:""
2634         x:354*root.realscale
2635         y:78.5*root.realscale
2636         width:35*root.realscale
2637         height:32*root.realscale
2638         hAlign: TextInput.AlignHCenter
2639         vAlign: TextInput.AlignVCenter
2640         font.family:  "Sans Serif"
2641         font.bold:    false
2642         font.italic:  false
2643         font.underline: false
2644         font.pointSize: 13
2645         font.overline: false
2646         font.strikeout: false
2647         onTextChanged: {
2648             id_1719.value = text
2649         }
2650     }
2651 
2652   }
2653 }