Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!
RuneMate will permanently shut down on August 7, 2026
due to events outside our control. You can continue using RuneMate until this date after which it will no longer be available. Thank you to everyone that contributed to RuneMate's success and to the community for the opportunity to serve you all these years.

  • Learn about RuneMate Vault and how its zero knowledge local encryption already protects your sensitive information.
  • Edit or delete your RuneMate account from your Account Settings.
  • All account upgrade subscriptions have been cancelled. No action required.

Resolved Loading css stylesheets

Joined
Dec 10, 2014
Messages
3,377
Code:
String alphaCss = Environment.getScript().getClass().getResource("/com/alpha/api/framework/ui/theme/Alpha.css").toExternalForm();
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
 
Mod Automation
Joined
Jul 26, 2013
Messages
3,121
@Cloud please make API methods to load resources so that behavior between local and SDN is predictable and uniform. <3
 
Top