PDA

View Full Version : (x) - xWin



xHomicide
09-09-2010, 02:49 AM
xWin

xWin is a full featured framework for movable and resizble windows.

http://dl.dropbox.com/u/101025/hon/xWindows/screenshot.jpg


HOW TO USE

Triggers:


xwin_Open - It is recommended that instead of calling this trigger directly you use the xwin_NewFrame template which will create a unique xwin_frame id for you
param0: xwin_frame
param1: x
param2: y
param3: width
param4: height
param5: minwidth
param6: maxwidth
param7: minheight
param8: maxheight
param9: canresize
param10: savesize
param11: savepos
param12: savestyle
param13: title
param14: icon
param15: body
param16: canclose
param17: canminimize

xwin_Close
param0: xwin_frame

xwin_Minimize
param0: xwin_frame

xwin_Restore
param0: xwin_frame


Events
The follow events are called on members of the {xwin_frame} group. This is useful for refreshing textareas when they change size.


xwin_OnCloseEvent: onevent0
xwin_OnMoveEvent: onevent1
xwin_OnResizeEvent: onevent2


Attributes


{xwin_frame}
{x}
{y}
{width}
{height}
{minwidth=6}
{maxwidth=100%}
{minheight=6}
{maxheight=100%}
{canresize=true}
{savesize}
{savepos}
{title}
{icon}
{body}


Example1:
The xwin_NewFrame template is used to create a new xwin Frame with a unique id. If the body attribute is set, a template will automatically be instantiated within the body of the new frame.


<template name="xwin_Example1">
<instance
name="xwin_NewFrame"
width="30h"
height="50h"
minwidth="20h"
maxwidth="50h"
minheight="40h"
icon="/ui/elements/chat_icon.tga"
title="Example Window"
body="xwin_Example1Body"
/>
</template>

<template name="xwin_Example1Body">
<label
font="dyn_12"
content="This is the most basic example."
/>
</template>


Example2:
Alternatively, you can create an empty frame and add an existing frame as its child using the SetParent() function. The xwin_frame attribute will set the given variable to the new unique name of the frame created. The name of the body panel within the frame is {xwin_frame}_body.


<template name="xwin_Example2">
<instance
name="xwin_NewFrame"
xwin_frame="xwin_frame"
width="30h"
height="50h"
minwidth="20h"
maxwidth="50h"
minheight="40h"
icon="/ui/elements/chat_icon.tga"
title="Example Window"
/>
<panel
oninstantiate="
Instantiate('xwin_Example2Body',
'content', 'Another example that allows us to set template tags')
);

SetParent(xwin_frame#'_body');
"
/>
</template>

<template name="xwin_Example2Body">
<label
font="dyn_12"
content="{content}"
/>
</template>


REQUIREMENTS
HoN Mod Manager (http://forums.heroesofnewerth.com/showthread.php?t=25883)

CHANGELOG

v2.1/b]
- Added options menu: [B]Instantiate('xwin_Options')
- Fixed {savepos} and {savesize}
- Added {canclose} and {canminimize}

v2.0
- Complete redesign

v1.3
- x position of windows is now set when windows are minimized and restored

v1.2
- Added option to change default color

v1.1
- Minor bug fixes

v1.0
- Initial release


DOWNLOAD
xWindows v2.1 (http://dl.dropbox.com/u/101025/hon/xWindows/xWindows.honmod)


xWindows v2.0 (http://dl.dropbox.com/u/101025/hon/xWindows/xWindows v2.0.honmod)
xWindows v1.3 (http://dl.dropbox.com/u/101025/hon/xWindows/xWindows v1.3.honmod)
xWindows v1.2 (http://dl.dropbox.com/u/101025/hon/xWindows/xWindows v1.2.honmod)
xWindows v1.1 (http://dl.dropbox.com/u/101025/hon/xWindows/xWindows v1.1.honmod)
xWindows v1.0 (http://dl.dropbox.com/u/101025/hon/xWindows/xWindows v1.0.honmod)





-

Matze
09-09-2010, 05:55 AM
How about u tell us what to do with it mb?
*edit* oh ok Mod Options Framework is needed. didnt know that

NiGHTsC
09-09-2010, 01:36 PM
Works just like Moveable Frames beside minimizable and restorable features?

Quzzap
09-09-2010, 03:12 PM
Yes but I believe Moveable Frames only works in-game, while xWindows works everywhere. Don't quote me on this though :p

Jomik
09-10-2010, 10:33 AM
Yes but I believe Moveable Frames only works in-game, while xWindows works everywhere. Don't quote me on this though :p

Just quoting for the heck of it xD
But yeah, his xStats shows in lobby and out of a game lobby (I believe it did, didn't really try, but heard it) But I actually don't think it works ingame?

xHomicide
09-10-2010, 10:57 AM
xWindows is different than movable frames. Movable Frames is designed to move static UI elements around.

xWindows are traditional UI windows with a header, close button, draggable corners, that can be manipulated any time.


attributes such as...
cangrab
canresize
minwidth
maxwidth
minheight
maxheight
canclose
onclose

triggers such as...
xWnd_Minimize
xWnd_Restore

If anyone actually wants to make a UI mod and desires the functionally of resizable windows I would be happy documenting it and helping them, otherwise, it will probably only be used by a few of my mods. xStats doesn't actually use most of the functionality because its location and size remain static.

JillSandwich
09-11-2010, 03:09 AM
So this is for lobby mods mostly? (fe2) you should definitely document this as your mod is the only one that does this sort of thing. Im sure some of the other frequent mod creators (Bangerz for example) should find something interesting to do with this.

____________

Some mod ideas on the top of my head:

A Guide database in the lobby
something similar to the Encyclopedia mods
.....

SgtSausage
09-12-2010, 05:53 PM
Thanks for making a thread and patch notes.

Loving all your mods.

Ruscour
09-12-2010, 06:16 PM
This opens up a lot of possibilities. When people create mods using this framework, could you maybe list them in this thread?

Some cool stuff possible with this.

SgtSausage
09-12-2010, 06:25 PM
A list would be awesome, but as of now there are no plans to document the mod for others to use. Unless someone volunteers to.

Its a great library for other mods, i hope it get used by more than just homicide as great as his mods are.

CorreQTmaTo
09-13-2010, 04:22 PM
Hi
need in honmod. plz

NiGHTsC
09-14-2010, 02:12 PM
Yes but I believe Moveable Frames only works in-game, while xWindows works everywhere. Don't quote me on this though :p


Just quoting for the heck of it xD
But yeah, his xStats shows in lobby and out of a game lobby (I believe it did, didn't really try, but heard it) But I actually don't think it works ingame?


xWindows is different than movable frames. Movable Frames is designed to move static UI elements around.

xWindows are traditional UI windows with a header, close button, draggable corners, that can be manipulated any time.


attributes such as...
cangrab
canresize
minwidth
maxwidth
minheight
maxheight
canclose
onclose

triggers such as...
xWnd_Minimize
xWnd_Restore

If anyone actually wants to make a UI mod and desires the functionally of resizable windows I would be happy documenting it and helping them, otherwise, it will probably only be used by a few of my mods. xStats doesn't actually use most of the functionality because its location and size remain static....Ok...

Awan`Afuqya
10-20-2010, 12:12 PM
1) There is no link to this thread in the mod itself.
2) Where the hell is the thread for "Bling"? It's missing.

iaznaB
10-21-2010, 11:30 AM
i don't see any buttons for Close or Minimize with this mod. Or what is it supposed to do if not that ?

Tront
10-26-2010, 03:54 AM
Thanks for this it was very useful.

I already added this attribute when I branched from this mod however... a 'constrainratio' attribute would be useful for allot of people. If 'constrainratio' = 1, The grab scaling would scale the width. and height proportional to the min/max values.

Quzzap
12-07-2010, 11:10 AM
Removed Mod Options Framework requirement.
http://dl.dropbox.com/u/5648227/misc/xWindows.honmod

RuD
12-07-2010, 11:19 AM
Removed Mod Options Framework requirement.
http://dl.dropbox.com/u/5648227/misc/xWindows.honmod
well done you :RingOfTheTeacher:

DeadLemming
01-14-2011, 09:00 AM
Does this allow me to get rid of the menu button in-game etc? I have miniui,, and moveable frames, but I'd like to completely do away with the menu button, and only be able to access those items if I press F-6. Anyone know if this will do it, or if there's a mod out there that will?

revan_xp
01-14-2011, 11:40 AM
Does this allow me to get rid of the menu button in-game etc? I have miniui,, and moveable frames, but I'd like to completely do away with the menu button, and only be able to access those items if I press F-6. Anyone know if this will do it, or if there's a mod out there that will?
Bangerz Panel beater

DeadLemming
01-14-2011, 12:05 PM
omg thank you so much. I freakin hate those things! you rock.

TwistIt
09-26-2011, 02:11 AM
I haven't got it to work at all.

Applied, and it shows in options. But I can resize anything.

xHomicide
09-26-2011, 02:53 AM
I haven't updated this mod in ages.

LordBreth
09-26-2011, 06:01 AM
I haven't updated this mod in ages.

Would be sweet if you did.

xHomicide
09-27-2011, 03:22 AM
v2.0
- message me on irc if you have any questions

mops1k
09-27-2011, 04:08 AM
gj, ty

eZekiel`
09-27-2011, 09:23 AM
now all we need is your main UI (your customizations)

He
09-27-2011, 10:53 AM
You killed my favourite mod! Advanced Replay Control (http://forums.heroesofnewerth.com/showthread.php?t=162007).

Forest_Elf
09-28-2011, 12:30 AM
Great.

And i noticed one interesting thing in this mod - is Lua working already? Just cant confirm this on my own atm - only later.

OuchOfDeath
09-28-2011, 03:37 PM
I haven't got it to work at all.

Applied, and it shows in options. But I can resize anything.
That's because that's not what it does. It's a UI framework that has to be specifically coded for. Someone has to code with the xWindows framework to make an alternate UI to the S2 one.

LordBreth
09-28-2011, 07:16 PM
One thing tough.
Every frame you make goes over everything in HoN.
I saw it's in the back of the Main.package, if you could put it somewhere else, that would be cool.

xHomicide
09-30-2011, 12:09 AM
v2.1
- see changelog

LordBreth
09-30-2011, 02:56 AM
Link broken again and can't update it.

xHomicide
09-30-2011, 03:21 AM
link fixed

LordBreth
09-30-2011, 10:45 AM
Would be cool to add a reset button in the color options.

MrMcCoy
10-08-2011, 05:54 PM
idk how to use it.. i would to edit somethings but.... i cant open a screen like yours.

LordBreth
10-08-2011, 06:31 PM
idk how to use it.. i would to edit somethings but.... i cant open a screen like yours.
For instance, open the console and type:
uicall xwin_root Instantiate('xwin_Example1');

xHomicide
10-31-2011, 05:30 PM
I am slowing making this mod into more than just a library. Within a week or so I am hoping to package up some early somewhat-usable interface alphas:

http://dl.dropbox.com/u/101025/images/xwin2gsd.jpg

Aizen`
10-31-2011, 05:40 PM
Oh yes, God yes. That's the stuff.

Wooyadeen
10-31-2011, 06:32 PM
This is unbelievable, great job!
I would like to see menu buttons in small movable window with horizontal/vertical option (instead of that big and half empty left bar), if possible.

xHomicide
10-31-2011, 08:41 PM
Here is a download link if people want to play with it:
http://dl.dropbox.com/u/101025/hon/xWin/xWin.honmod
Very alpha version, there are lots of missing features - like the ability to kick players from a channel or create a new public game.

VielarCrom
10-31-2011, 09:01 PM
Totally incredible dude, can't wait to see more.

Witchking
11-01-2011, 06:15 PM
Feel yourself encouraged to go on like this, it looks TOTALLY AWESOME (yes, caps is appropriate in this case. :D )

Seriously, make a suggestion about this getting implemented officially. Just 200 years ahead of the usual UI.

Wooyadeen
11-02-2011, 04:56 AM
Incompatible with bang preloader.

Tankie
11-02-2011, 06:42 AM
Incompatible with bang preloader.
my advice: use "quickstart practice game" by Silv3ri instead. it basically does the same job :)

BlanketGhost
11-02-2011, 07:17 AM
This I like. Keep up the good work man, I also use your Hero Panel 2 and Advanced Replay Windows. I like your works man.

xHomicide
11-04-2011, 08:59 PM
v3.1 (http://dl.dropbox.com/u/101025/hon/xWin/xWin.honmod)

xHomicide
11-04-2011, 09:03 PM
Holding ctrl will open a new player or match stats window if you bind the control key:

BindButton ui CTRL CommanderModifier2 ""

TYRI
11-04-2011, 10:53 PM
Really cool but I'll wait till the final version for full functionality.

oNNN1
11-06-2011, 10:12 AM
best mod ever

DracroniC
11-07-2011, 02:35 AM
This is amazing!

SaiKeD
11-07-2011, 10:39 AM
This is the best ever made I would like to see it evolve though.

handi
11-13-2011, 03:56 AM
Incompatible with bang preloader.
Instead of using the preloader honmod, press CTRL+f8 each time you start the game and type:

preloadworld caldavar

depending on your system, it should take the same time as bang's mod. you'll know it's done when the console shade pops back down.

Arkguil
11-18-2011, 06:28 PM
"xWin" caused a problem:

Could not find strong starting with "<!--Big Rotating Gears-->" as sought by line
582 of C:\....XWin\mod.xml

I'd really like to use this! I'd really appreciate the help.

http://img88.imageshack.us/img88/4176/13602347.th.png (http://imageshack.us/photo/my-images/88/13602347.png/)

Uploaded with ImageShack.us (http://imageshack.us)

Michigan
11-19-2011, 07:28 PM
is there a way to keep the message of the day from popping up when i go into MM

handi
11-19-2011, 07:42 PM
is there a way to keep the message of the day from popping up when i go into MM
2nded. MotD pops up after joining a game, or a failed connect. (ie host is full)

handi
11-21-2011, 07:25 PM
Quick fix: http://dl.dropbox.com/u/1930450/xWin.honmod

Removed MotD completely.

Arkguil
11-21-2011, 11:52 PM
Am I the only person with this problem? I used Lord's Menu a few weeks back if that helps... but it was a .honmod and I've deleted it. There's also a possibility that my textures.s2z may be messed up because during halloween, creeps and kongor's skins weren't changed.

Thanks.

Edit: Finally found the incompatibility. Random Potential Hero... Quickstart Practice Game and Reconnect Button will apply but they don't show up in the user UI. At least I have xWin working. It looks amazing.

handi
11-23-2011, 04:58 PM
Another bug: No way to differentiate between all & team chat.

Arkguil
11-23-2011, 05:14 PM
it's currently broken with the new patch right?

Arkguil
12-02-2011, 06:40 PM
it's currently broken with the new patch right?

right?

XREH
12-03-2011, 11:21 AM
badass fix w/o working HoN_TV

xWin (http://www.mediafire.com/?898a8pxrep8wrzm)

Deformer
12-04-2011, 10:20 AM
"xWin" caused a probem:

Could not find string starting with "<!-- Big Rotating Gears -->" as
sought by line 479 of D:\Games\Heroes of Newerth\game\mods\xWin.honmod\mod.xml

This may be caused by the mod being outdated or by an incompatibility with another enabled mod.
http://cs5613.vkontakte.ru/u22148629/-14/z_2b88ab55.jpg
wtf??

Wooyadeen
12-04-2011, 11:31 AM
http://cs5613.vkontakte.ru/u22148629/-14/z_2b88ab55.jpg
wtf??


Incompatibility with one of bangerz addons

Deformer
12-04-2011, 12:43 PM
with some example?

cut off all modes, the error remains

XREH
12-04-2011, 02:00 PM
http://i.piccy.info/i7/2b4e4eab04ad39720bfc38098bd35aab/1-5-2410/54792523/23232.png

works fine for me

Deformer
12-04-2011, 02:31 PM
problem was in the Quick Team Match Making mod!!!

Arkguil
12-15-2011, 05:21 PM
http://img683.imageshack.us/img683/3276/screenshotlpi.th.png (http://imageshack.us/photo/my-images/683/screenshotlpi.png/)

Anyone have a working version? I've only gotten to use this a very short period of time because of the huge changes in hon (halloween patch, 2.5 patch) Someone please help me out!

handi
01-03-2012, 09:47 PM
This mod is too rad to fade away. This is a sincere request to xHomicide to either update this, or shoot me a quick pm on updating this & things to look for in the future.

xHomicide
01-03-2012, 10:32 PM
Recent focus has been Hero Bars. Next I think I will be working on a more complete game UI. The likes of BardUI/MiniUI. Doubt I will get to this mod and the loads of work it requires to develop/maintain.

Aizen`
01-03-2012, 10:43 PM
Recent focus has been Hero Bars. Next I think I will be working on a more complete game UI. The likes of BardUI/MiniUI. Doubt I will get to this mod and the loads of work it requires to develop/maintain.

I <3 u, and yet i </3 you for that.

Would you mind making an up2date tutorial on how to get started with modding, so if someone wanted to pick this one up, they wouldn't have such a hard time starting ? :+1luck:

Maskovsky
01-07-2012, 04:28 PM
http://img683.imageshack.us/img683/3276/screenshotlpi.th.png (http://imageshack.us/photo/my-images/683/screenshotlpi.png/)

Anyone have a working version? I've only gotten to use this a very short period of time because of the huge changes in hon (halloween patch, 2.5 patch) Someone please help me out!

This is the error im getting also, sadface.

Ferrovsky
01-07-2012, 04:57 PM
Seems like this is doing something:

<find><![CDATA[<panel y="2.6h" width="12h" height="12h" noclick="true" color="invisible"> line 59

ForsakenSoul
01-08-2012, 10:47 AM
Still having issues with no other mods currently in use anyone figure out the fix?

Ferrovsky
01-08-2012, 11:18 AM
Still having issues with no other mods currently in use anyone figure out the fix?

dunno how to fix it, but took a look yesterday at the code, and it seems like it can't find something, so it goes like "find" but cant find anything cuz it doesnt exists

GrottMongo
01-21-2012, 07:00 AM
call me stupid, but how do you start this mod? Can someone gimme a helping hand? :)

Aizen`
01-21-2012, 07:06 AM
call me stupid, but how do you start this mod? Can someone gimme a helping hand? :)

Sorry mate, it's no longer updated :(

GrottMongo
01-21-2012, 07:22 AM
Sorry mate, it's no longer updated :(

what? so the mod doesnt work at all? :/

Meatball
02-13-2012, 11:19 PM
Seems like it.
Homicide not working on this anymore

U`GOT`SERVED
02-17-2012, 09:32 AM
EPIC SADNESS
http://t2ak.roblox.com/5dabc25c007849a1a5d090e255bc880e
FIX xHomi OR I will KILL MYSELF!!

handi
02-18-2012, 11:12 AM
┌─┐
┴─┴
ಠ_ರೃ
-|-
/ω\

Meatball
02-19-2012, 09:51 PM
Greatest mod made, but shame about the discontinuation :(

Bleed
01-15-2013, 11:41 PM
I dreamed a dream . . . that this would come back alive. :'(