Giter Site home page Giter Site logo

border image rendering bug about urho3d HOT 6 CLOSED

urho3d avatar urho3d commented on May 2, 2024
border image rendering bug

from urho3d.

Comments (6)

weitjong avatar weitjong commented on May 2, 2024

The Window's "texture" attribute looks a little suspicious to me. I think the "border" image rect is taken from Textures/UI.png, no?

from urho3d.

friesencr avatar friesencr commented on May 2, 2024

combatui.png was a copy of UI.png. I did it so i don't mess with the editor's stuff. It is basically the same except i added a white border for my skills area. When i point the background at UI.png I get all white. Why would the same layout render fine in the editor if the reference is invalid?

Something wierd about about this layout is the background is a sibling to the skillslots so that the opacity can be ignored. I later found an option to simulate that effect i believe but havn't changed it.

from urho3d.

cadaver avatar cadaver commented on May 2, 2024

Explicitly defined image rect for the window should at least fix that for the time being.

I originally suspected the image rect would be reset when assigning a texture to override the style, but it should only do that if the previous image rect is zero.

from urho3d.

cadaver avatar cadaver commented on May 2, 2024

Testing with a similar layout containing a window I can't reproduce the bug.

However, I assign the UI default style to the root element prior to loading the layout. If you don't do that, then the Window won't get the default style's image rect attribute and will indeed show a full texture, which is different from the editor (which always has the default style assigned)

from urho3d.

friesencr avatar friesencr commented on May 2, 2024

i may not be setting the default style :sheep so please don't waste time looking into this until i can confirm.

from urho3d.

friesencr avatar friesencr commented on May 2, 2024

yup. no default style.
thanks guys

from urho3d.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.