mirror of
https://github.com/Relintai/pandemonium_cms.git
synced 2024-11-14 09:37:19 +01:00
21 lines
518 B
GDScript
21 lines
518 B
GDScript
tool
|
|
extends "res://addons/web_pages/classes/WebPageEntry.gd"
|
|
class_name WebPageEntryText, "res://addons/web_pages/icons/icon_web_page_entry_text.svg"
|
|
|
|
export(String) var text : String setget set_text, get_text
|
|
var compiled_text : String
|
|
|
|
func get_text() -> String:
|
|
return text
|
|
|
|
func set_text(t : String) -> void:
|
|
text = t
|
|
|
|
compiled_text = text.replace("\n", "<br>")
|
|
|
|
func _render(request : WebServerRequest):
|
|
request.body += compiled_text
|
|
|
|
func get_page_entry_class_name() -> String:
|
|
return "WebPageEntryText"
|