Showing results 1 to 25 of 152
Search took 0.01 seconds.
Search: Posts Made By: kurapica.igas
Forum: Lua/XML Help 10-01-22, 08:16 AM
Replies: 5
Views: 1,662
Posted By kurapica.igas
You can use gsub to do the replacement line =...

You can use gsub to do the replacement


line = 'frame1 and frame2 or frame3'


local keywords = {
["and"] = "and",
["or"] = "or",
}
Forum: Lua/XML Help 07-11-21, 08:38 PM
Replies: 2
Views: 3,035
Posted By kurapica.igas
local time = os.time or _G.time -- Use time API...

local time = os.time or _G.time

-- Use time API to get the timestamp
local date1 = time{ year = 2012, month = 12, day = 20, hour = 0, min = 0, sec = 0 }
local date2 = time{ year = 2012, month = 12,...
Forum: Lua/XML Help 06-21-21, 12:23 AM
Replies: 5
Views: 1,843
Posted By kurapica.igas
just string.format(val >= 1 and "%d" or "%.1f",...

just string.format(val >= 1 and "%d" or "%.1f", val))
Forum: Dev Tools 04-15-21, 09:30 PM
Replies: 0
Views: 5,363
Posted By kurapica.igas
Solution to re-layout raid panel during combat

There are two type raid panel, one that modify the CompactRaidFrame but it has many limits, one created by SecureGroupHeaderTemplate, many authors think that can't be re-layout during combat,...
Forum: Lua/XML Help 04-09-21, 08:56 PM
Replies: 16
Views: 7,098
Posted By kurapica.igas
When use a frame to register non-existed event,...

When use a frame to register non-existed event, it'd throw an error, that's why the first try failed.

I guess the AceEvents handle it like


local events = {}
local frame =...
Forum: Lua/XML Help 04-02-21, 09:15 AM
Replies: 5
Views: 2,824
Posted By kurapica.igas
The html used by the SimpleHtml has many limits....

The html used by the SimpleHtml has many limits. If you get the whole html, it means the widget reject to render it.

You should check the Well-formed HTML in the...
Forum: Lua/XML Help 04-02-21, 06:55 AM
Replies: 5
Views: 2,824
Posted By kurapica.igas
Since you already use the default chat to...

Since you already use the default chat to display, You can just use the SimpleHTML (https://wowwiki-archive.fandom.com/wiki/UIOBJECT_SimpleHTML) widget, I use it to show details of the table/frames...
Forum: Dev Tools 03-23-21, 09:14 PM
Replies: 10
Views: 34,986
Posted By kurapica.igas
For now, the first version introduction for the...

For now, the first version introduction for the ui style and the unit frame are all done:

003.ui.md (https://github.com/kurapica/Scorpio/blob/master/Docs/003.ui.md)
006.unitframe.md...
Forum: Dev Tools 02-24-21, 07:19 AM
Replies: 10
Views: 34,986
Posted By kurapica.igas
So another raid panel addon based on the...

So another raid panel addon based on the Scoprio's Style system is released at https://www.curseforge.com/wow/addons/ashtoash.

https://media.forgecdn.net/attachments/343/227/ata_menu.jpg

Besides...
Forum: Lua/XML Help 01-18-21, 09:16 PM
Replies: 10
Views: 5,094
Posted By kurapica.igas
Normally what your see is just a smooth effect,...

Normally what your see is just a smooth effect, no other events for the UNIT Health
Forum: Dev Tools 01-13-21, 08:01 PM
Replies: 10
Views: 34,986
Posted By kurapica.igas
The reactive system is already done, a nameplate...

The reactive system is already done, a nameplate mod released at https://www.curseforge.com/wow/addons/aim.

It's a tiny mod, almost all indicators are skin settings defined in the DefaultSkin.lua...
Forum: Lua/XML Help 11-21-20, 11:08 AM
Replies: 9
Views: 3,916
Posted By kurapica.igas
No, blz use it in many places, I also take its...

No, blz use it in many places, I also take its code to create my own template in pure Lua.
Forum: Lua/XML Help 11-21-20, 07:02 AM
Replies: 9
Views: 3,916
Posted By kurapica.igas
The error is the usage about the ScrollFrame, you...

The error is the usage about the ScrollFrame, you normally should use the FauxScrollFrameTemplate or take the logic part from that template to handle the scroll range changes.

Back to the code,...
Forum: Lua/XML Help 11-20-20, 09:51 PM
Replies: 9
Views: 3,916
Posted By kurapica.igas
Maybe show the full addon for test is a better...

Maybe show the full addon for test is a better idea.
Forum: General Authoring Discussion 11-19-20, 09:55 PM
Replies: 2
Views: 4,397
Posted By kurapica.igas
I think it's the ACTIONBAR_UPDATE_COOLDOWN...

I think it's the ACTIONBAR_UPDATE_COOLDOWN events, misspelled?
Forum: Lua/XML Help 11-19-20, 09:51 PM
Replies: 9
Views: 3,916
Posted By kurapica.igas
Try to put the fontstring and texture on the same...

Try to put the fontstring and texture on the same frame, and change the texture's drawlayer to artwork.


local iconFrame = CreateFrame("Frame", nil, frame)
iconFrame:SetSize(32,...
Forum: AddOn Help/Support 11-19-20, 07:31 PM
Replies: 8
Views: 5,495
Posted By kurapica.igas
Try call FlashClientIcon()

Try call FlashClientIcon()
Forum: AddOn Help/Support 11-19-20, 08:28 AM
Replies: 2
Views: 2,862
Posted By kurapica.igas
It's a little complicated, if you want the action...

It's a little complicated, if you want the action buttons in the flyout bar can be bind to 1-10, that means you need to override the default keybindings, and will disabled the main action bar.

So...
Forum: AddOn Help/Support 11-08-20, 08:20 PM
Replies: 8
Views: 8,069
Posted By kurapica.igas
To create template in Lua, we should use classes,...

To create template in Lua, we should use classes, it's not a simple job to fulfill all requirements.

I can do that with my PLoop and Scorpio Lib, but normally only authors with full OOP background...
Forum: Dev Tools 10-15-20, 02:10 AM
Replies: 10
Views: 34,986
Posted By kurapica.igas
9498 Just finished the new Cube, it's browser is...

9498

Just finished the new Cube, it's browser is using the SimpleHtml to show the contents, the main problem is how to simply generate the contents, since we need a complex string concat to generate...
Forum: Dev Tools 10-02-20, 08:45 PM
Replies: 10
Views: 34,986
Posted By kurapica.igas
Working on a new Code Editor, the main part is...

Working on a new Code Editor, the main part is finished.

9484

The example code can be found at Cube/CubeEditor.lua (https://github.com/kurapica/Cube/blob/master/CubeEditor.lua), it's an example to...
Forum: Lua/XML Help 10-02-20, 08:10 PM
Replies: 14
Views: 13,808
Posted By kurapica.igas
The coroutine are common Lua functions, the main...

The coroutine are common Lua functions, the main cost of it compares to the normal Lua func is about two parts:

I. The cost of the coroutine's creation is much bigger than call a function, so I...
Forum: Lua/XML Help 10-02-20, 05:57 AM
Replies: 14
Views: 13,808
Posted By kurapica.igas
If you don't mind use a lib, you may check the...

If you don't mind use a lib, you may check the example for Continue() in the Scorpio - asynchronous framework...
Forum: Lua/XML Help 09-18-20, 08:32 PM
Replies: 1
Views: 5,810
Posted By kurapica.igas
When you done with refreshData, you need use...

When you done with refreshData, you need use scrollFrame:UpdateScrollChildRect() to update the scrollchild's height based on those roster buttons, or you could adjust the scroll child's height based...
Forum: Dev Tools 08-05-20, 12:03 AM
Replies: 10
Views: 34,986
Posted By kurapica.igas
A new system is added to apply dynamic values to...

A new system is added to apply dynamic values to the ui styles:

9464

The text of the label will be changed based on the player's health.


The real code of the Wow.UnitHealth("player") is
Showing results 1 to 25 of 152