misc stuff
This commit is contained in:
@@ -42,6 +42,7 @@ SOLANA_PLUGIN_EXPORT uint32_t solana_plugin_start(struct SolanaAPI* solana_api)
|
|||||||
g_crdtns = std::make_unique<CRDTNotesSync>(*g_crdtn, *cs);
|
g_crdtns = std::make_unique<CRDTNotesSync>(*g_crdtn, *cs);
|
||||||
|
|
||||||
// register types
|
// register types
|
||||||
|
PLUG_PROVIDE_INSTANCE(CRDTNotes, plugin_name, g_crdtn.get());
|
||||||
PLUG_PROVIDE_INSTANCE(CRDTNotesSync, plugin_name, g_crdtns.get());
|
PLUG_PROVIDE_INSTANCE(CRDTNotesSync, plugin_name, g_crdtns.get());
|
||||||
PLUG_PROVIDE_INSTANCE(CRDTNotesEventI, plugin_name, g_crdtns.get());
|
PLUG_PROVIDE_INSTANCE(CRDTNotesEventI, plugin_name, g_crdtns.get());
|
||||||
} catch (const ResolveException& e) {
|
} catch (const ResolveException& e) {
|
||||||
|
@@ -81,7 +81,7 @@ float CRDTNotesSync::iterate(float time_delta) {
|
|||||||
_fetch_frontier_queue.erase(it);
|
_fetch_frontier_queue.erase(it);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 1.f;
|
return 2.f;
|
||||||
}
|
}
|
||||||
|
|
||||||
CRDTNotes::Doc* CRDTNotesSync::getDoc(const CRDTNotes::DocID& doc_id) {
|
CRDTNotes::Doc* CRDTNotesSync::getDoc(const CRDTNotes::DocID& doc_id) {
|
||||||
|
@@ -106,6 +106,7 @@ float CRDTNotesImGui::render(void) {
|
|||||||
const std::string docid_str = "Doc " + detail::to_hex(docid);
|
const std::string docid_str = "Doc " + detail::to_hex(docid);
|
||||||
bool open = true;
|
bool open = true;
|
||||||
|
|
||||||
|
ImGui::SetNextWindowSize({200, 200}, ImGuiCond_Appearing);
|
||||||
if (ImGui::Begin(docid_str.c_str(), &open)) {
|
if (ImGui::Begin(docid_str.c_str(), &open)) {
|
||||||
renderDoc(docid);
|
renderDoc(docid);
|
||||||
}
|
}
|
||||||
@@ -120,7 +121,7 @@ float CRDTNotesImGui::render(void) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return 1.f;
|
return 2.f;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CRDTNotesImGui::renderContactListContactSmall(const Contact4 c, const bool selected) const {
|
bool CRDTNotesImGui::renderContactListContactSmall(const Contact4 c, const bool selected) const {
|
||||||
|
Reference in New Issue
Block a user