Announcement

Collapse
No announcement yet.

Object LOOP Plugin

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Imagine Programming
    replied
    Originally posted by RizlaUK View Post
    what is his real name ? (Bob) << easy to type!

    Hey bas, looks like you got your return key working



    HaHa, do you know how many times iv said that......still havent had time, lol

    it would be nice if the aforementioned props thing would work, i could stop using dialog variables
    Haha well, I'm still using the return-knob but I'm getting used to it, not strange
    after 3000 lines of code just in this plugin haha

    The props thing works, but only for objects on current page/dialogex.
    The way you wish to see it is possible, but first I gotta do some other
    stuff on this plugin, I still need to check if it's possible. Because, working
    this onto all objectfunctions is going to be a PAIN

    Leave a comment:


  • RizlaUK
    replied
    what is his real name ? (Bob) << easy to type!

    Hey bas, looks like you got your return key working

    Maybe I'll work Sakuya's script in ^^ I havn't had time yesterday, so I'll work
    on it tonight.
    HaHa, do you know how many times iv said that......still havent had time, lol

    it would be nice if the aforementioned props thing would work, i could stop using dialog variables

    Leave a comment:


  • Imagine Programming
    replied
    @Dean. I don't know actually, I havn't tested that yet, but, the properties on
    the fly system does not use SetText, it uses SetProperties. So it'll try to
    attempt to set the properties of the object on that page.

    Maybe I'll work Sakuya's script in ^^ I havn't had time yesterday, so I'll work
    on it tonight. Sakuya (Can I please use your real name, easier to type XD) also
    requested I rename the .Props field to .Properties...

    Leave a comment:


  • Sakuya
    replied
    Here's a function that'll help set Script of an object on another page, it won't set the text but I still find it quite useful.

    Function:
    Code:
    Page.ObjectScriptBuffer = {};
    
    function Page.SetObjectScriptEx(szPage, szObject, szEvent, szScript)
    	assert(type(szPage) == "string", "Argument 1 must be of type string.");
    	assert(type(szObject) == "string", "Argument 2 must be of type string.");
    	assert(type(szEvent) == "string", "Argument 3 must be of type string.");
    	assert(type(szScript) == "string", "Argument 4 must be of type string.");
    	
    	if (Application.GetCurrentPage() == szPage) then
    		Page.SetObjectScript(szObject, szEvent, szScript);
    		
    		return (Application.GetLastError() == 0);
    	else
    		local Index = Table.Count(Page.ObjectScriptBuffer) + 1;
    		Page.ObjectScriptBuffer[Index] = szScript;
    		
    		Application.SetPageScript(szPage, "On Preload", Application.GetPageScript(szPage, "On Preload").."\r\n\r\n-- Shadiku was here. ^_^\r\nPage.SetObjectScript(\""..szObject.."\", \""..szEvent.."\", Page.ObjectScriptBuffer["..Index.."]);\r\n");
    		
    		return (Application.GetLastError() == 0);
    	end
    end
    Example usage:
    Code:
    Page.SetObjectScriptEx("Page2", "Input1", "On Key", [[if (e_Key == 13) then
    	Dialog.Message("", "Why hello there.");
    end]]);
    Example attached.
    Attached Files

    Leave a comment:


  • Sakuya
    replied
    Originally posted by RizlaUK View Post
    dose that mean you can set the text of "Input1" on "Page1" from "Button2" on "Page2" or from a dialog ???

    if so that could really cut down my variable use
    Hmm, don't think so as it still uses Input.SetText which only works on one page, however if Imagine really has the patience he could append stuff to the On Preload of that page to set it when you go back to that page which is possible if you use Application.SetPageScript.

    Leave a comment:


  • RizlaUK
    replied
    dose that mean you can set the text of "Input1" on "Page1" from "Button2" on "Page2" or from a dialog ???

    if so that could really cut down my variable use

    Leave a comment:


  • Sakuya
    replied
    Originally posted by Imagine Programming View Post
    Thanks, I'm really happy about the on the fly system lol :yes
    All my objects are going in my Global Functions from now on so I can call them anywhere in my script.

    Leave a comment:


  • Imagine Programming
    replied
    Originally posted by RizlaUK View Post
    No, that REALLY dident help, Thanks for that
    Hehe sorry about that XD

    Originally posted by RizlaUK View Post
    ok, today i got some time, took the day off work because the misses is ill (shes not, but my boss thinks she is ) so hopefully i can get my bits done and look at all the new plugins
    Cool, I have 4 days off too, I should be on a 'field trip' school tried to obligate me to, but they failed. I now get to stay at home and eventually do a replacing task
    Originally posted by RizlaUK View Post

    BTW, this looks really useful :yes
    Thanks, I'm really happy about the on the fly system lol :yes

    Leave a comment:


  • RizlaUK
    replied
    eventually it'll all turn into frustration on a level you would love to pull off your nails, and pull out your hair
    No, that REALLY dident help, Thanks for that

    ok, today i got some time, took the day off work because the misses is ill (shes not, but my boss thinks she is ) so hopefully i can get my bits done and look at all the new plugins

    BTW, this looks really useful :yes

    Leave a comment:


  • Imagine Programming
    replied
    Update Online!
    version 1.1, 223 functions!

    Sooner as expected, but the update is online!

    This system is fully working, and please do know this is only for setting
    some properties. Obtaining properties is possible, but they may differ after a
    function call to SetProperties.
    See previous post what this new system can do.

    Also 2 functions were added:
    • Object:FadeIn(MaxOpacity,Timeout=10) -- Fades in an imageobject
    • Object:FadeOut(MinOpacity, Timeout=10) -- Fades out an imageobject


    Downloadlinks updated. See first post for links. An updated example is included!

    __________________
    Bas,
    Imagine Programming
    iEnc Action Plugin
    Object Action Plugin
    Last edited by Imagine Programming; 03-08-2010, 10:26 PM.

    Leave a comment:


  • Imagine Programming
    replied
    UPDATE

    As in, information about the next update.

    As Sakuya suggested, in the next version there will be a On the fly properties
    modification system. After hours of research and coding, I have put together
    a system in this plugin, where SetProperties could be discarded!

    Code sample, tested and it works:
    Code:
    Input1 = Object:Create("Input1"); -- this object is already existing on current page/dialog
    Input1.Props.Width = 200;
    Input1.Props.Text   = "New text, this actually works!";
    Input1.Props.Height = 22;
    That's it, you can edit seperate keys in the properties table just like that!
    These changes will be affected right from the moment lua parses that line!

    Still some testing is required, but an update will be posted on the 9th,
    thanks sakuya for suggesting this!

    Leave a comment:


  • Imagine Programming
    replied
    Originally posted by RizlaUK View Post
    NO, why you think my plugins have so many bugs

    lol, its the not smoking is why i cant concentrate, if i had a ciggy id be ok, but, im not giving in now, i'll just have to get used to it!!

    Does this feeling ever go away, anxiety i think, but cant work out why!!
    It will go away, eventually it'll all turn into frustration on a level you would love to pull off your nails, and pull out your hair (as described by a few)... But then, when you make it through those stages, you won't ever need a cigarette again ^^

    I don't think this was a motivational message, but it should have been

    Leave a comment:


  • RizlaUK
    replied
    can you even concentrate with kids around you?
    NO, why you think my plugins have so many bugs

    lol, its the not smoking is why i cant concentrate, if i had a ciggy id be ok, but, im not giving in now, i'll just have to get used to it!!

    Does this feeling ever go away, anxiety i think, but cant work out why!!

    Leave a comment:


  • Imagine Programming
    replied
    Originally posted by RizlaUK View Post
    i want a plugin that freezes time so i can get some D.A.M work done

    i havent looked at this yet, i will do tho, just when i find time, im trying to get my plugins back out there but things keep happening, phone rings, door knocks, kids cry, misses talks!!, just cant get any peace!! and cant concentrate with no NICOTINE AGRRRRRR

    (iv done 2 packets of gum today.....my jaw hurts, but im smoke free lol)
    Code:
        local RizlaUK = NewPersonHandler("D.H.");
        local hTime   = TimeHandler();
        hTime:Freeze();
        while(RizlaUK:Busy())do
            hTime:EnsureFrozen();
            RizlaUK:GetWorkDone(WORK_PLENTY);
        end
    hehe

    Wow, kudos for not smoking mate! I envy that mental strength XD
    Well, get some work done! No hehe just kidding, can you even concentrate with kids around you?

    Leave a comment:


  • RizlaUK
    replied
    wishes for future AMS plugins in L-OOP
    i want a plugin that freezes time so i can get some D.A.M work done

    i havent looked at this yet, i will do tho, just when i find time, im trying to get my plugins back out there but things keep happening, phone rings, door knocks, kids cry, misses talks!!, just cant get any peace!! and cant concentrate with no NICOTINE AGRRRRRR

    (iv done 2 packets of gum today.....my jaw hurts, but im smoke free lol)

    Leave a comment:

Working...
X