Difference between revisions of "Template:LegacyWarning"

From Spherical
Jump to: navigation, search
(Created initial version (more noticeable version will be made soon))
 
(Better summary + styled)
Line 1: Line 1:
<div class="warning">
+
<div style="width: 90%; max-width: 1000px; margin: 0 auto; padding: 0 10px; border: 1px solid #888; border-radius: 3px;">
WARNING: This page has been written for the legacy Sphere 1.x API. While this API is supported in miniSphere, please do not mix API version 1 code with version 2 code as this will break things.
+
<h4>Warning: Legacy code ahead</h4>
 +
This page has been written for the legacy Sphere 1.x API. While this API is supported in miniSphere, it is recommended to use the new Sphere 2 API.<br>
 +
<span style="font-size: 12px; color: #555;">If you do use the old API, please be aware that Sphere 2 objects are different from Sphere 1 objects, and they should not be used interchangeably as this will break your game.</span>
 
</div>
 
</div>

Revision as of 17:03, 1 August 2017

Warning: Legacy code ahead

This page has been written for the legacy Sphere 1.x API. While this API is supported in miniSphere, it is recommended to use the new Sphere 2 API.
If you do use the old API, please be aware that Sphere 2 objects are different from Sphere 1 objects, and they should not be used interchangeably as this will break your game.