Search:

Type: Posts; User: cche

Page 1 of 4 1 2 3 4

Search: Search took 0.47 seconds.

  1. how do i get the new position of a UI panel after it is dragged?

    I am trying to make my turnButton movable, and when moved, stays at the new location over saves etc.
    I cannot find a way to obtain the current location of my panel after it is moved.
    onEndDrag...
  2. Replies
    1
    Views
    216

    UI vs. game interface

    I don't know for sure if this is a bug or if it is a feature.

    As it stands now, my game board with large buttons on it catches the clicks from the save/load window (or any other top level game UI...
  3. I tried using the UI to draw data on my cards on...

    I tried using the UI to draw data on my cards on the fly. It works, with some limitations. The UI data doesn't display in some circumstances, for example the top card of a face up deck fails. (not...
  4. Replies
    31
    Views
    20,390

    Sticky: While this seems to work ok, I have run into...

    While this seems to work ok, I have run into severe problems with data consistency between different scripts.
    I am making a variation that has all functions in the global script. This seems to be...
  5. Replies
    3
    Views
    347

    Eventually I had to move all the turn management...

    Eventually I had to move all the turn management code out of the button script and into global. Ugh. At least I have gone around the problem!
  6. Replies
    3
    Views
    347

    Argh The problem mutates ...

    I got initGame to work by passing a parameter instead of using a call.

    It is still the case that my global variables in turnButton are taking inconsistent values.

    Here is the code for...
  7. Replies
    3
    Views
    347

    Whew! Found the problem.

    startTurns called from UI.
    calls Global/initGame
    calls startTurns --- illegal or at least broken
    returns junk
    gets junk
    end

    I fixed it by making the UI call...
  8. Replies
    3
    Views
    347

    synchronizing scripts -- can it be done?

    My turnButton is giving me fits.

    turnButton.init calls showTurns to configure the UI.

    turnButton.startTurns initializes order and curIndex, then calls initGame in global
    initGame immediately...
  9. Replies
    2
    Views
    279

    Move the adv_deck.takeObject(params) to just...

    Move the adv_deck.takeObject(params) to just before the break statement. You only want to take a card if the match succeeds.

    Good lucki!
  10. Thread: XML UI Question

    by cche
    Replies
    3
    Views
    331

    You can use [[ and ]] to quote your string like...

    You can use [[ and ]] to quote your string like this:


    tooltip=[[If someone takes a card from the draw pile,
    can they only draw one card and end their turn,
    or keep drawing until they play a...
  11. Replies
    5
    Views
    568

    Seems like you could get this effect (and lots...

    Seems like you could get this effect (and lots more) by letting the script pass a click it has intercepted to the next layer of the UI. That is, whatever would have received the click it your button...
  12. Replies
    31
    Views
    20,390

    Sticky: Turn Button

    I finally gave up on the integrated Turns system. Too hard to use unless you don't really need it all.

    This code goes in the script of a handy custom tile named "Turn Button". (or whatever else...
  13. Replies
    9
    Views
    1,367

    Finally got something to work, I think... I...

    Finally got something to work, I think...

    I turneds OFF Turns in the main user interface before I start. Then starting the game properly set the player. Will continue to test, but at least it...
  14. Replies
    4
    Views
    799

    In this case you have too many objects (hits) in...

    In this case you have too many objects (hits) in the range of the cast. I am not sure what the limit is, but you're hitting it.
  15. Replies
    9
    Views
    1,367

    I am in the same place as decumanusmaximus; I...

    I am in the same place as decumanusmaximus; I can set the player order and set the current player, but turns system button does not move with Turns.turn_color.
    What I want to do is experiment with...
  16. Replies
    9
    Views
    1,367

    Been distracted. Will look at it again this week.

    Been distracted. Will look at it again this week.
  17. Replies
    9
    Views
    1,367

    The Turns interface kind-sorta works. When I...

    The Turns interface kind-sorta works. When I finally manage to set Turns.order and turn_color, it moves the star to the correct player, but the End Turn button still stays on my screen. If I click...
  18. Not to mention that when you get that pop-up, you...

    Not to mention that when you get that pop-up, you have no idea what will be randomized. (or at least I certainly don't!)
  19. Replies
    9
    Views
    1,188

    flexing the code

    sorting a single type is not too hard with this script.
    Make a table


    targetZonesSingle = {
    ['what, to, look, for'] = 'zoneID',
    ['other'] = getObjectFromGUID('otherZoneID')
    }
  20. Thread: minor bug report

    by cche
    Replies
    0
    Views
    822

    minor bug report

    In the notebook, and description of the board object,

    "double tap F4 no longer works, as the index of the zone tool changed in update 10.9 -- the pixelpaint tool is gone. It is now "double tap F3"
  21. There are attributes that set who can see your UI...

    There are attributes that set who can see your UI elements, however the default is visible to everyone.
    Take a look here: https://api.tabletopsimulator.com/ui/attributes/ and then look over the...
  22. Thread: PDF Rulebook

    by cche
    Replies
    3
    Views
    754

    This is already available in the form of the...

    This is already available in the form of the tablet. You can enter any URL on it.
    This is better than just a PDF thing, it does a pretty good job with any web doc.

    There is also a button on it...
  23. Replies
    9
    Views
    1,188

    A cautionary tale, but this works. (badly but clearly :-) )

    Well I started to write this for you, but the new Wait class had me stumped.
    I couldn't get takeObject callbacks to work at all either. I think I may know why but leave that for another day.
    The...
  24. We'll miss you! Thanks for all the great mods...

    We'll miss you! Thanks for all the great mods and suggestions!
  25. I am unclear why the line tool would be used for...

    I am unclear why the line tool would be used for voting; how are you using it?

    My thought is to vote by hovering over a card and press a scripting key.

    You could also use an XML drop box with a...
Results 1 to 25 of 91
Page 1 of 4 1 2 3 4