21 lines
374 B
Lua
21 lines
374 B
Lua
local entity = require("entity")
|
|
local window = require("window")
|
|
local note = require("room/note")
|
|
|
|
local m = entity:from{
|
|
text = "sample text",
|
|
}
|
|
|
|
local install = m.install
|
|
function m:install(room, x, y)
|
|
self.note = note:from{
|
|
text = self.text,
|
|
room = room
|
|
}
|
|
|
|
install(self, room, x, y)
|
|
end
|
|
|
|
m.mousepressed = window.portal('note')
|
|
|
|
return m
|