1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Resolved Loading css stylesheets

Discussion in 'Client & Site Support' started by SlashnHax, May 19, 2015.

  1. SlashnHax

    Joined:
    Dec 10, 2014
    Messages:
    3,216
    Likes Received:
    1,043
    Code (Text):
    1.  
    2. String alphaCss = Environment.getScript().getClass().getResource("/com/alpha/api/framework/ui/theme/Alpha.css").toExternalForm();
    3. System.out.println(alphaCss);scene.getStylesheets().addAll(Themes.getCurrentStylesheet(),  alphaCss);
    Works fine locally, throws a NPE on SDN.
    css file is added as a resource, works fine locally.

    Pls, I just want to make my UIs pretty :(

    @Cloud @Arbiter
     
  2. Arbiter

    Arbiter Mod Automation

    Joined:
    Jul 26, 2013
    Messages:
    2,938
    Likes Received:
    1,266
    @Cloud please make API methods to load resources so that behavior between local and SDN is predictable and uniform. <3
     
  3. Infinite Inferno

    Infinite Inferno The Pip Collector

    Joined:
    Sep 14, 2014
    Messages:
    445
    Likes Received:
    122
    @Cloud i support
     

Share This Page

Loading...