Advanced Tutorial

Advanced Tutorial

From BeamNG

Revision as of 16:33, 1 July 2014 by Theshark (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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 your rules should always begin with .app .appnamehere 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;
}