Showing results 1 to 21 of 21
Search took 0.00 seconds.
Search: Posts Made By: Kagura
Forum: General Authoring Discussion 09-26-16, 02:19 AM
Replies: 31
Views: 8,732
Posted By Kagura
I finally know how to formulate my question I...

I finally know how to formulate my question I think and this will maybe also answer it itself, but let's see. How would one go around creating frame templates programmatically?

(I now realize I can...
Forum: General Authoring Discussion 09-26-16, 01:52 AM
Replies: 31
Views: 8,732
Posted By Kagura
It's in a private repository, but I will...

It's in a private repository, but I will opensource it once I properly split the parts.

And no I don't use CoffeeScript :eek:
Forum: General Authoring Discussion 09-26-16, 01:39 AM
Replies: 31
Views: 8,732
Posted By Kagura
I linked to some resources in another reply, but...

I linked to some resources in another reply, but yes: I am very well aware of this. The difference though is: trying to optimize code that gets run once vs trying to optimize code that gets run every...
Forum: General Authoring Discussion 09-26-16, 01:07 AM
Replies: 31
Views: 8,732
Posted By Kagura
It actually won't. Thanks for this, I improved...

It actually won't. Thanks for this, I improved this part. It was fairly trivial to achieve next

-- js -> lua
frame.SetPoint('*') -> frame:SetAllPoints()
frame.SetPoint('TOPLEFT') ->...
Forum: General Authoring Discussion 09-26-16, 01:04 AM
Replies: 31
Views: 8,732
Posted By Kagura
Maybe I am, maybe it's a personal preference. To...

Maybe I am, maybe it's a personal preference. To provide modularity here while using the original Frame methods (SetParent in this particular case), one would have to either pollute the Frame...
Forum: General Authoring Discussion 09-26-16, 12:58 AM
Replies: 31
Views: 8,732
Posted By Kagura
In my given example, I use the classic metatable...

In my given example, I use the classic metatable class implementation with a slight twist to support super calls. These are only used in Components that are usually set up once. If I didn't use a...
Forum: General Authoring Discussion 09-26-16, 12:47 AM
Replies: 31
Views: 8,732
Posted By Kagura
Thanks you very much, an oversight on my part.

Thanks you very much, an oversight on my part.
Forum: General Authoring Discussion 09-25-16, 04:11 AM
Replies: 31
Views: 8,732
Posted By Kagura
How pretty the produced LUA code looks depends...

How pretty the produced LUA code looks depends completely what kind of 'class' implementation you choose and if you mimify the method names or not. I would also urge you to do performance and memory...
Forum: General Authoring Discussion 09-24-16, 06:46 AM
Replies: 31
Views: 8,732
Posted By Kagura
I agree that it's the programmer's job to make...

I agree that it's the programmer's job to make code readable up to a certain point. You can write the most beautiful piece of art in assembly, but it's gonna be damn hard for anyone else to...
Forum: General Authoring Discussion 09-23-16, 05:11 PM
Replies: 31
Views: 8,732
Posted By Kagura
Why I want to do this myself is pretty simple: -...

Why I want to do this myself is pretty simple:
- I really like the declarative way of creating a UI. Lua usually ends up being unreadable and especially because there are so many different possible...
Forum: General Authoring Discussion 09-23-16, 05:12 AM
Replies: 31
Views: 8,732
Posted By Kagura
Actually, the compiler itself is written in...

Actually, the compiler itself is written in javascript and produces readable lua code. I had a very well performing ui written in lua before and this is actually at least as fast since the produced...
Forum: General Authoring Discussion 09-22-16, 04:19 PM
Replies: 31
Views: 8,732
Posted By Kagura
I am not planning, I am already doing it, but...

I am not planning, I am already doing it, but this part is not my problem as it already works: (I basically compile JS to lua). What I am having second thoughts about is how to build up the UI using...
Forum: General Authoring Discussion 09-22-16, 08:28 AM
Replies: 31
Views: 8,732
Posted By Kagura
Journey to developing a complete UI in JS

Hello,

I am mainly looking for discussing and critique about the path I am currently walking. Without further ado:

I decided two weeks ago that I wanted to develop a new UI, but I wanted it to be a...
Forum: AddOn Help/Support 09-16-14, 10:03 AM
Replies: 6
Views: 2,744
Posted By Kagura
OK, that actually helped. Placing these buttons...

OK, that actually helped. Placing these buttons directly as a child of the scroll child gives this behavior. If you place it in a frame inside the scroll child, the problem goes away:

@Duugu : my...
Forum: AddOn Help/Support 09-16-14, 09:05 AM
Replies: 6
Views: 2,744
Posted By Kagura
I tried next piece of code -- snip postCreate...

I tried next piece of code


-- snip
postCreate = function (self)
local button1 = UI.Button:instance({
parentFrame = self.contentFrame,
width = 100,
height = 20,
text = 'Close',
Forum: AddOn Help/Support 09-16-14, 08:14 AM
Replies: 6
Views: 2,744
Posted By Kagura
ScrollFrame behavior

I am working on my own UI and Framework and noticed that when I place frames in a scrollframe, the aligning (anchors) seem to be behaving very weird.

I attached the screenshots and the lua code for...
Forum: Lua/XML Help 09-05-13, 07:20 AM
Replies: 67
Views: 35,009
Posted By Kagura
Actually it won't be slower. But Phanx is right,...

Actually it won't be slower. But Phanx is right, I think the thread is derailing too much from "simple optimization" to getting every bit of performance you can possibly get.

p.s. If you are really...
Forum: Lua/XML Help 08-29-13, 03:49 AM
Replies: 67
Views: 35,009
Posted By Kagura
On the subject to declaring variables to their...

On the subject to declaring variables to their most confining scope next should be noted:

local a
for i=1, 5 do
a = i
end


-- Compiles into
Forum: Lua/XML Help 06-10-13, 02:54 AM
Replies: 8
Views: 5,103
Posted By Kagura
There's multiple ways of using metatables, but...

There's multiple ways of using metatables, but the below is one of the ways I use it and probably easiest to compare to "regular" way of OOP programming.

A working example you can find at...
Forum: oUF (Otravi Unit Frames) 03-28-13, 03:45 AM
Replies: 20
Views: 19,323
Posted By Kagura
I don't think boss units are real units (maybe...

I don't think boss units are real units (maybe they changed it and they are supposed to be, but they are still not). I don't use oUF, but I have the exact same problem in my own unitframes if I don't...
Forum: oUF (Otravi Unit Frames) 03-28-13, 02:47 AM
Replies: 20
Views: 19,323
Posted By Kagura
Think your answer might be next :...

Think your answer might be next :

https://github.com/haste/oUF/commit/f5d746d4d80faa375d3c1baa3e0c563bcff13c3b
Showing results 1 to 21 of 21