Cabal Common Library

From Elite Wiki
Revision as of 13:24, 30 January 2011 by Svengali (talk | contribs) (Notes about changes for v1.1 added)
Cabal_Common_Library
CCL logo.png
Download Link See Download
Version 1.0
History 2010-12-09
Stations No
Ships No
Missions No
Equipment No
Alternative HUD
Available
No
Sound Set
Available
No
Category Misc OXPs
Author Cmd.Cheyd
PhantorGorth
Svengali

Overview

Reinventing the wheel is not everybodys taste, so here comes a collection of useful snippets and helpers.

Its main purpose is to simplify some common tasks used by OXPers and also includes a few unique features. It contains functions to check requirements, helper functions for arrays, strings, and numbers, an encrypt/decrypt algorithm, and, last but not least, functions for missionscreen models and an onscreen keyboard. Over time it will grow and include more functions and features.

The library does not alter any native JS objects (like Array or String) in its current form to avoid clashes.

A offline documentation for OXP-Developers is available too.


CCL Keyboard01.jpg


Requirements

  • Oolite v1.74.2

Download

Levelindicator0.png
0-{{{2}}}

Documentation:



Prereleasenotes for v1.1

Cabal_Common:

  • .entGetScreenModel() marked as deprecated. Oolite v1.75 provides mission.displayModel.
  • .pseudoRand() changed to Oolites v1.75 system.scrambledPseudoRandomNumber(n).
  • .strToWidth() behaviour changed to Oolites v1.75 new defaultFont.measureString(string).

Cabal_Common_Keyboard:

  • .start() changed. New optional parameters (scpic, scovl and scmod) added for more flexibility.