-
July 30th, 2017, 23:04 #31
If you're looking for the bit I mentioned this is what I tweaked (bolded).
Code:<windowclass name="combattracker_host" modes="host" merge="join"> <sheetdata> <windowtitlebar name="title"> <resource>ct_window_title</resource> </windowtitlebar> <anchor_title_ctbox name="contentanchor" /> <subwindow name="combat_timer"> <script> function onInit() if User.getRulesetName() == "5E" then window.combat_timer.setAnchor("left", "contentanchor", "left","absolute",170); end Debug.console(window.getDatabaseNode()); end function onDoubleClick(x,y) CombatTimer.resetTimer(); end </script> <anchored width="100" height="25"> <bottom offset="-20" /> <left parent="contentanchor" offset="160" /> </anchored> <class>ct_combat_timer_host</class> <activate /> </subwindow> </sheetdata> </windowclass>
---
Fantasy Grounds AD&D Reference Bundle, AD&D Adventure Bundle 1, AD&D Adventure Bundle 2
Documentation for AD&D 2E ruleset FGU Reference Module, or Web.
Custom Maps (I2, S4, T1-4, Barrowmaze,Lost City of Barakus)
Note: Please do not message me directly on this site, post in the forums or ping me in FG's discord.
-
July 31st, 2017, 04:18 #32
- Join Date
- Mar 2016
- Posts
- 21
This code snippet should have changed the anchor position for the 5E ruleset. I'm not sure why it didn't for you. Can you test the 1.0.2 that I just uploaded and let me know if you still have the problem?
Code:function onInit() if User.getRulesetName() == "5E" then window.combat_timer.setAnchor("left", "contentanchor", "left","absolute",170); end end
-
July 31st, 2017, 04:49 #33
I actually did not tell the entire truth, it was with my ruleset actually. Based on 5e but called something different (AD&D Core). My apologies. If you want to add a "or" in there...this will work (tested it myself).
Code:if User.getRulesetName() == "5E" or User.getRulesetName() == "AD&D Core" then
---
Fantasy Grounds AD&D Reference Bundle, AD&D Adventure Bundle 1, AD&D Adventure Bundle 2
Documentation for AD&D 2E ruleset FGU Reference Module, or Web.
Custom Maps (I2, S4, T1-4, Barrowmaze,Lost City of Barakus)
Note: Please do not message me directly on this site, post in the forums or ping me in FG's discord.
-
July 31st, 2017, 05:37 #34
- Join Date
- Mar 2016
- Posts
- 21
Done.
-
July 31st, 2017, 05:42 #35---
Fantasy Grounds AD&D Reference Bundle, AD&D Adventure Bundle 1, AD&D Adventure Bundle 2
Documentation for AD&D 2E ruleset FGU Reference Module, or Web.
Custom Maps (I2, S4, T1-4, Barrowmaze,Lost City of Barakus)
Note: Please do not message me directly on this site, post in the forums or ping me in FG's discord.
-
August 1st, 2017, 14:00 #36
Hey mortgarra, I was curious how you implemented your timer using client server pings (Genius hacky way to get around the no timer issue, hope FG makes a timer in FGU) and then I saw this nugget up top.
Code:-- -- Are you f*****g kidding me, Lua? function tablesize(t) .. .. ..
Anyway, cheers!
-
August 2nd, 2017, 04:10 #37
Archangel
- Join Date
- Apr 2008
- Location
- Virginia Beach
- Posts
- 3,096
While we are talking about wishes for FGU, I'd sure like to see the ability to do a modal dialog using FG instead of the windows ugly dialog (such a harsh intrusion into a delightful interface).
-
August 2nd, 2017, 14:24 #38
- Join Date
- Jun 2013
- Location
- Isanti, MN
- Posts
- 2,922
During our last game session, my players complained about the bell ringing when the timer countdown reached 0. Because it rang on everyone's client, they all thought it was their turn. So, I modified your extension to only ring the bell on the player's client whose turn it is. Here is that code:
Code:local nodeEntry = CombatManager.getActiveCT(); local sClass, sRecord = DB.getValue(nodeEntry, "link", "", ""); local nodePC = DB.findNode(sRecord); if nodePC then local sOwner = nodePC.getOwner(); if sOwner then User.ringBell(sOwner); end end
-
April 21st, 2019, 08:58 #39
- Join Date
- May 2011
- Location
- Palm Coast, FL
- Posts
- 138
Was wondering if this could be used to count down a certain number of rounds? I have an event that happens after 30 rounds, and I’m trying to find a way to track that. Also, can you run more than one timer at a time?
Art, Games, Life
www.artystrique.com (In progress, so be kind, please)
Discord https://discord.gg/grHbK6ck3Q
-
April 21st, 2019, 14:29 #40
- Join Date
- Jun 2013
- Location
- Isanti, MN
- Posts
- 2,922
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks