mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-01-19 05:41:17 +00:00
Add police widescreen background (#690)
* Add Police background * Update bitmap
This commit is contained in:
parent
e709400dc6
commit
61632ea0a7
@ -20,10 +20,16 @@ void CreateWidescreen()
|
|||||||
struct AssetView {
|
struct AssetView {
|
||||||
std::string name;
|
std::string name;
|
||||||
std::string extra;
|
std::string extra;
|
||||||
|
int32_t z;
|
||||||
};
|
};
|
||||||
const AssetView widescreenBitmaps[] = {
|
const AssetView widescreenBitmaps[] = {
|
||||||
{"GaraDoor_Background_Wide",
|
{"GaraDoor_Background_Wide",
|
||||||
"World:current, StartWith:\\Lego\\Scripts\\Isle\\Isle;1160, RemoveWith:\\Lego\\Scripts\\Isle\\Isle;1161"}
|
"World:current, StartWith:\\Lego\\Scripts\\Isle\\Isle;1160, RemoveWith:\\Lego\\Scripts\\Isle\\Isle;1161",
|
||||||
|
-1},
|
||||||
|
{"Police_Background_Wide",
|
||||||
|
"World:\\lego\\scripts\\police\\police;0, StartWith:\\Lego\\Scripts\\Police\\Police;0, "
|
||||||
|
"RemoveWith:\\Lego\\Scripts\\Police\\Police;0",
|
||||||
|
10}
|
||||||
};
|
};
|
||||||
|
|
||||||
si::Interleaf si;
|
si::Interleaf si;
|
||||||
@ -44,9 +50,9 @@ void CreateWidescreen()
|
|||||||
object->presenter_ = "MxStillPresenter";
|
object->presenter_ = "MxStillPresenter";
|
||||||
object->name_ = asset.name;
|
object->name_ = asset.name;
|
||||||
object->filetype_ = si::MxOb::STL;
|
object->filetype_ = si::MxOb::STL;
|
||||||
object->location_ = si::Vector3(-240.0, 0.0, -1.0);
|
object->location_ = si::Vector3(-240, 0.0, asset.z);
|
||||||
object->direction_ = si::Vector3(0, 0, 0);
|
object->direction_ = si::Vector3(0, 0, 0);
|
||||||
object->up_ = si::Vector3(0, 1.0, 0);
|
object->up_ = si::Vector3(0, 1, 0);
|
||||||
|
|
||||||
if (!object->ReplaceWithFile(file.c_str())) {
|
if (!object->ReplaceWithFile(file.c_str())) {
|
||||||
abort();
|
abort();
|
||||||
|
|||||||
3
assets/widescreen/Police_Background_Wide.bmp
Normal file
3
assets/widescreen/Police_Background_Wide.bmp
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:dc2cfb5d0522d2cc4cfbaf74d6b1b5f1f2e0512f613e398849a2359d537deff5
|
||||||
|
size 538678
|
||||||
Loading…
Reference in New Issue
Block a user