Advanced Tutorial

Advanced Tutorial

From BeamNG

Revision as of 16:05, 25 June 2014 by Metalmuncher (talk | contribs) (css section added)

Advanced Tutorial

This page will go through adding more advanced features to your app, including CSS, streams, the update and resize functions. The examples will be carrying on from the app created in the My First App tutorial.

app.css

MyFirstApp ingame with CSS applied.

Full article on app.css

More info on W3Schools

The app.css file used for describing the look and formatting of a document. All standard css can be done in here, but you should at least have the .app .appnamehere classes so your CSS does not affect other things. In the example below, we make the text colour red on the h1 header added in the previous tutorial.

Example:

.app .MyFirstApp h1{
	color: red;
}