Jump to content

Recommended Posts

Posted

I want a Window that can be resized based on the html sent from the server.

For example sending the string "xWidth=200;xHeight=350" at the top of the htm would tell the client to open the NPC window with said proportions.

Anyone have this implemented?

  • Upvote 1
Posted

I want that too!

However, the issue is that it would require the creation of a new HTML-handling template within the Client's Interface itself. I've asked about this on a predominantly Russian forum and this was their answer. Do let us know if you find a way, the easier - the better! 😄

Posted
1 hour ago, redsky9 said:

I want a Window that can be resized based on the html sent from the server.

For example sending the string "xWidth=200;xHeight=350" at the top of the htm would tell the client to open the NPC window with said proportions.

Anyone have this implemented?

I send it for u in another topic about extra window... its the same method

Posted

I have made a bit of progress, where I was able to implement a quick and dirty way of resizing the window, but couldn't resize the other things needed for the window to look ok. It would take a few days more of diging in the code, but my C++/C# skills are more then dusty.

I was thinking, someone already had the code neccessary to quickly add this.

3 minutes ago, OMGzOMG said:

I send it for u in another topic about extra window... its the same method

Yes, thanks for that. It took me about half way, but there are still issues with dinamicly resizing the window.

Posted (edited)
13 minutes ago, redsky9 said:

I have made a bit of progress, where I was able to implement a quick and dirty way of resizing the window, but couldn't resize the other things needed for the window to look ok. It would take a few days more of diging in the code, but my C++/C# skills are more then dusty.

I was thinking, someone already had the code neccessary to quickly add this.

Yes, thanks for that. It took me about half way, but there are still issues with dinamicly resizing the window.

to resize everything just use "size_percent_width" in xdat on everything inside the window

Quote

local int Width, Height;

    ParseInt(param, "Width", Width);
    ParseInt(param, "Height", Height);


    if(Width > 0 && Height > 0)
        me.SetWindowSize(Width, Height);

https://imgur.com/KJVWOvc.jpg

Edited by OMGzOMG
  • 3 weeks later...
Posted
On 1/24/2022 at 5:14 PM, Rootware said:

Bad code. What happen if HTML tag  have no custom size params - window size 0, 0 or previous size? Window in interface don't destroying anfter closing. It's just hidding.

I guess we would set some defaults and use those in case there is no size params in the HTML.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Posts

    • ⚔️ Balance or Power? The community decides!   During spot hunting and battles, the Destroyer (under limits) can wipe out dozens of mobs in seconds, outperforming other classes. A player on Destroyer (with three windows) can monopolize top farming spots solo, while most other classes require additional characters to compete. Result: Resources end up concentrated in the hands of a single player rather than being distributed among multiple participants.   We propose discussing possible changes: Reducing the number of targets the Destroyer can hit under limits. Balancing vampirism by implementing progressive efficiency reduction based on the number of enemies attacked. These changes would preserve the class identity while making PvE more fair for everyone.   🎯 What do you think?
    • Newcomers always raise suspicion. At first, people look at the newcomer cautiously. “Who is this? Where did they come from? Are they here to stay?” That’s just how it is trust isn’t given right away. It’s the same with services, especially when it comes to your accounts, money, and verifications. But the truth is, every major player was once that “newbie” entering the chat. VibeSMS we’re new on the forum, but definitely not new to the game: — Fast and stable SMS verification — Numbers from 68+ countries — Rentals for PayPal, Telegram, Amazon, and dozens of other services — Prices starting at $0.1 per activation or $5–8/month for rental We don’t promise mountains from the sky. We simply make sure the code arrives quickly, and you get what you paid for. No extra words or surprises. Because in the world of SMS verifications, it’s not magic that counts, but reliability consistent speed, transparent pricing, and a service you can depend on every day.
    • sell adena l2rebon signature x1 - 1kk = 1.4 dollars l2reborn x10 - 500kk = 7 dollars E-Global x Lu4 - 1kk = 4 dollars DISCORD - GODDARDSHOP TELEGRAM - MMOPROMO
    • Locked. Not following the rules.
    • Put prices on your first post. Read the rules.
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock